Update.
[glibc.git] / locale / C-time.c
blob673d9bd4785c322e15d66c4e7ef807d892f579a9
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.
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.
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.
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. */
20 #include "localeinfo.h"
22 /* This table's entries are taken from POSIX.2 Table 2-11
23 ``LC_TIME Category Definition in the POSIX Locale''. */
25 const struct locale_data _nl_C_LC_TIME =
27 _nl_C_name,
28 NULL, 0, 0, /* no file mapped */
29 UNDELETABLE,
30 54,
32 { string: "Sun" },
33 { string: "Mon" },
34 { string: "Tue" },
35 { string: "Wed" },
36 { string: "Thu" },
37 { string: "Fri" },
38 { string: "Sat" },
39 { string: "Sunday" },
40 { string: "Monday" },
41 { string: "Tuesday" },
42 { string: "Wednesday" },
43 { string: "Thursday" },
44 { string: "Friday" },
45 { string: "Saturday" },
46 { string: "Jan" },
47 { string: "Feb" },
48 { string: "Mar" },
49 { string: "Apr" },
50 { string: "May" },
51 { string: "Jun" },
52 { string: "Jul" },
53 { string: "Aug" },
54 { string: "Sep" },
55 { string: "Oct" },
56 { string: "Nov" },
57 { string: "Dec" },
58 { string: "January" },
59 { string: "February" },
60 { string: "March" },
61 { string: "April" },
62 { string: "May" },
63 { string: "June" },
64 { string: "July" },
65 { string: "August" },
66 { string: "September" },
67 { string: "October" },
68 { string: "November" },
69 { string: "December" },
70 { string: "AM" },
71 { string: "PM" },
72 { string: "%a %b %e %H:%M:%S %Y" },
73 { string: "%m/%d/%y" },
74 { string: "%H:%M:%S" },
75 { string: "%I:%M:%S %p" },
76 { string: NULL },
77 { string: "" },
78 { string: "" },
79 { string: "" },
80 { string: "" },
81 { string: "" },
82 { word: 0 },
83 { word: 0 },
84 { string: "" },
85 { string: "" },