locTime.c
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* locTime.c - time locale information */
  2. /* Copyright 1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,20sep92,smb  documentation additions
  7. 01b,27jul92,smb renamed from __timeLoc
  8. 01a,25jul92,smb created.
  9. */
  10. /*
  11. DESCRIPTION
  12. INCLUDE FILE: stdio.h, stdlib.h, assert.h
  13. SEE ALSO: American National Standard X3.159-1989
  14. NOMANUAL
  15. */
  16. #include "vxWorks.h"
  17. #include "private/timeP.h"
  18. static TIMELOCALE  __ctime = { 
  19. /* DAYS  */     {"SUN","MON","TUE","WED","THU","FRI","SAT",
  20.                      "SUNDAY","MONDAY", "TUESDAY","WEDNESDAY",
  21.      "THURSDAY","FRIDAY", "SATURDAY"},
  22. /* MONTHS */     {"JAN","FEB","MAR","APR","MAY","JUN","JUL", 
  23.        "AUG","SEP", "OCT", "NOV","DEC","JANUARY",
  24.      "FEBRUARY","MARCH", "APRIL","MAY", "JUNE",
  25.      "JULY","AUGUST","SEPTEMBER","OCTOBER", 
  26.      "NOVEMBER", "DECEMBER"},
  27. /* FORMAT */     {"%b %d %H:%M:%S:%Y","%b %d %Y","%H:%M:%S"},
  28. /* AMPM */     {"AM","PM"},
  29. /* ZONES */     {"UTC","UTC",""},
  30. /* DST */     {"",""}
  31.     };
  32. TIMELOCALE  *__loctime = &__ctime;