Update.
[platform/upstream/glibc.git] / locale / C-time.c
1 /* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
4
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Library General Public License as
7    published by the Free Software Foundation; either version 2 of the
8    License, or (at your option) any later version.
9
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14
15    You should have received a copy of the GNU Library General Public
16    License along with the GNU C Library; see the file COPYING.LIB.  If not,
17    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18    Boston, MA 02111-1307, USA.  */
19
20 #include "localeinfo.h"
21
22 /* This table's entries are taken from POSIX.2 Table 2-11
23    ``LC_TIME Category Definition in the POSIX Locale'',
24    with additions from ISO 14652, section 4.6.  */
25
26 const struct locale_data _nl_C_LC_TIME =
27 {
28   _nl_C_name,
29   NULL, 0, 0, /* no file mapped */
30   UNDELETABLE,
31   62,
32   {
33     { string: "Sun" },
34     { string: "Mon" },
35     { string: "Tue" },
36     { string: "Wed" },
37     { string: "Thu" },
38     { string: "Fri" },
39     { string: "Sat" },
40     { string: "Sunday" },
41     { string: "Monday" },
42     { string: "Tuesday" },
43     { string: "Wednesday" },
44     { string: "Thursday" },
45     { string: "Friday" },
46     { string: "Saturday" },
47     { string: "Jan" },
48     { string: "Feb" },
49     { string: "Mar" },
50     { string: "Apr" },
51     { string: "May" },
52     { string: "Jun" },
53     { string: "Jul" },
54     { string: "Aug" },
55     { string: "Sep" },
56     { string: "Oct" },
57     { string: "Nov" },
58     { string: "Dec" },
59     { string: "January" },
60     { string: "February" },
61     { string: "March" },
62     { string: "April" },
63     { string: "May" },
64     { string: "June" },
65     { string: "July" },
66     { string: "August" },
67     { string: "September" },
68     { string: "October" },
69     { string: "November" },
70     { string: "December" },
71     { string: "AM" },
72     { string: "PM" },
73     { string: "%a %b %e %H:%M:%S %Y" },
74     { string: "%m/%d/%y" },
75     { string: "%H:%M:%S" },
76     { string: "%I:%M:%S %p" },
77     { string: NULL },
78     { string: "" },
79     { string: "" },
80     { string: "" },
81     { string: "" },
82     { string: "" },
83     { word: 0 },
84     { string: "" },
85     { wstr: (const uint32_t *) L"Sun" },
86     { wstr: (const uint32_t *) L"Mon" },
87     { wstr: (const uint32_t *) L"Tue" },
88     { wstr: (const uint32_t *) L"Wed" },
89     { wstr: (const uint32_t *) L"Thu" },
90     { wstr: (const uint32_t *) L"Fri" },
91     { wstr: (const uint32_t *) L"Sat" },
92     { wstr: (const uint32_t *) L"Sunday" },
93     { wstr: (const uint32_t *) L"Monday" },
94     { wstr: (const uint32_t *) L"Tuesday" },
95     { wstr: (const uint32_t *) L"Wednesday" },
96     { wstr: (const uint32_t *) L"Thursday" },
97     { wstr: (const uint32_t *) L"Friday" },
98     { wstr: (const uint32_t *) L"Saturday" },
99     { wstr: (const uint32_t *) L"Jan" },
100     { wstr: (const uint32_t *) L"Feb" },
101     { wstr: (const uint32_t *) L"Mar" },
102     { wstr: (const uint32_t *) L"Apr" },
103     { wstr: (const uint32_t *) L"May" },
104     { wstr: (const uint32_t *) L"Jun" },
105     { wstr: (const uint32_t *) L"Jul" },
106     { wstr: (const uint32_t *) L"Aug" },
107     { wstr: (const uint32_t *) L"Sep" },
108     { wstr: (const uint32_t *) L"Oct" },
109     { wstr: (const uint32_t *) L"Nov" },
110     { wstr: (const uint32_t *) L"Dec" },
111     { wstr: (const uint32_t *) L"January" },
112     { wstr: (const uint32_t *) L"February" },
113     { wstr: (const uint32_t *) L"March" },
114     { wstr: (const uint32_t *) L"April" },
115     { wstr: (const uint32_t *) L"May" },
116     { wstr: (const uint32_t *) L"June" },
117     { wstr: (const uint32_t *) L"July" },
118     { wstr: (const uint32_t *) L"August" },
119     { wstr: (const uint32_t *) L"September" },
120     { wstr: (const uint32_t *) L"October" },
121     { wstr: (const uint32_t *) L"November" },
122     { wstr: (const uint32_t *) L"December" },
123     { wstr: (const uint32_t *) L"AM" },
124     { wstr: (const uint32_t *) L"PM" },
125     { wstr: (const uint32_t *) L"%a %b %e %H:%M:%S %Y" },
126     { wstr: (const uint32_t *) L"%m/%d/%y" },
127     { wstr: (const uint32_t *) L"%H:%M:%S" },
128     { wstr: (const uint32_t *) L"%I:%M:%S %p" },
129     { wstr: NULL },
130     { wstr: (const uint32_t *) L"" },
131     { wstr: (const uint32_t *) L"" },
132     { wstr: (const uint32_t *) L"" },
133     { wstr: (const uint32_t *) L"" },
134     { wstr: (const uint32_t *) L"" },
135     { string: "\7" },
136     { word: 19971130 },
137     { word: 19971130 },
138     { string: "\7" },
139     { string: "\1" },
140     { string: "\7" },
141     { string: "\1" },
142     { string: "" }
143   }
144 };