C-time.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with the GNU C Library; see the file COPYING.LIB. If not,
  14. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA. */
  16. #include "localeinfo.h"
  17. /* This table's entries are taken from POSIX.2 Table 2-11
  18. ``LC_TIME Category Definition in the POSIX Locale''. */
  19. const struct locale_data _nl_C_LC_TIME =
  20. {
  21. _nl_C_name,
  22. NULL, 0, 0, /* no file mapped */
  23. UNDELETABLE,
  24. 54,
  25. {
  26. { string: "Sun" },
  27. { string: "Mon" },
  28. { string: "Tue" },
  29. { string: "Wed" },
  30. { string: "Thu" },
  31. { string: "Fri" },
  32. { string: "Sat" },
  33. { string: "Sunday" },
  34. { string: "Monday" },
  35. { string: "Tuesday" },
  36. { string: "Wednesday" },
  37. { string: "Thursday" },
  38. { string: "Friday" },
  39. { string: "Saturday" },
  40. { string: "Jan" },
  41. { string: "Feb" },
  42. { string: "Mar" },
  43. { string: "Apr" },
  44. { string: "May" },
  45. { string: "Jun" },
  46. { string: "Jul" },
  47. { string: "Aug" },
  48. { string: "Sep" },
  49. { string: "Oct" },
  50. { string: "Nov" },
  51. { string: "Dec" },
  52. { string: "January" },
  53. { string: "February" },
  54. { string: "March" },
  55. { string: "April" },
  56. { string: "May" },
  57. { string: "June" },
  58. { string: "July" },
  59. { string: "August" },
  60. { string: "September" },
  61. { string: "October" },
  62. { string: "November" },
  63. { string: "December" },
  64. { string: "AM" },
  65. { string: "PM" },
  66. { string: "%a %b %e %H:%M:%S %Y" },
  67. { string: "%m/%d/%y" },
  68. { string: "%H:%M:%S" },
  69. { string: "%I:%M:%S %p" },
  70. { string: NULL },
  71. { string: "" },
  72. { string: "" },
  73. { string: "" },
  74. { string: "" },
  75. { string: "" },
  76. { word: 0 },
  77. { word: 0 },
  78. { string: "" },
  79. { string: "" },
  80. }
  81. };