Back to index

glibc  2.9
C-time.c
Go to the documentation of this file.
00001 /* Copyright (C) 1995-2002, 2004, 2007 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #include "localeinfo.h"
00021 
00022 /* This table's entries are taken from POSIX.2 Table 2-11
00023    ``LC_TIME Category Definition in the POSIX Locale'',
00024    with additions from ISO 14652, section 4.6.  */
00025 
00026 const struct locale_data _nl_C_LC_TIME attribute_hidden =
00027 {
00028   _nl_C_name,
00029   NULL, 0, 0,               /* no file mapped */
00030   { NULL, },                /* no cached data */
00031   UNDELETABLE,
00032   0,
00033   111,
00034   {
00035     { .string = "Sun" },
00036     { .string = "Mon" },
00037     { .string = "Tue" },
00038     { .string = "Wed" },
00039     { .string = "Thu" },
00040     { .string = "Fri" },
00041     { .string = "Sat" },
00042     { .string = "Sunday" },
00043     { .string = "Monday" },
00044     { .string = "Tuesday" },
00045     { .string = "Wednesday" },
00046     { .string = "Thursday" },
00047     { .string = "Friday" },
00048     { .string = "Saturday" },
00049     { .string = "Jan" },
00050     { .string = "Feb" },
00051     { .string = "Mar" },
00052     { .string = "Apr" },
00053     { .string = "May" },
00054     { .string = "Jun" },
00055     { .string = "Jul" },
00056     { .string = "Aug" },
00057     { .string = "Sep" },
00058     { .string = "Oct" },
00059     { .string = "Nov" },
00060     { .string = "Dec" },
00061     { .string = "January" },
00062     { .string = "February" },
00063     { .string = "March" },
00064     { .string = "April" },
00065     { .string = "May" },
00066     { .string = "June" },
00067     { .string = "July" },
00068     { .string = "August" },
00069     { .string = "September" },
00070     { .string = "October" },
00071     { .string = "November" },
00072     { .string = "December" },
00073     { .string = "AM" },
00074     { .string = "PM" },
00075     { .string = "%a %b %e %H:%M:%S %Y" },
00076     { .string = "%m/%d/%y" },
00077     { .string = "%H:%M:%S" },
00078     { .string = "%I:%M:%S %p" },
00079     { .string = "" },
00080     { .string = "" },
00081     { .string = "" },
00082     { .string = "" },
00083     { .string = "" },
00084     { .string = "" },
00085     { .word = 0 },
00086     { .string = "" },
00087     { .wstr = (const uint32_t *) L"Sun" },
00088     { .wstr = (const uint32_t *) L"Mon" },
00089     { .wstr = (const uint32_t *) L"Tue" },
00090     { .wstr = (const uint32_t *) L"Wed" },
00091     { .wstr = (const uint32_t *) L"Thu" },
00092     { .wstr = (const uint32_t *) L"Fri" },
00093     { .wstr = (const uint32_t *) L"Sat" },
00094     { .wstr = (const uint32_t *) L"Sunday" },
00095     { .wstr = (const uint32_t *) L"Monday" },
00096     { .wstr = (const uint32_t *) L"Tuesday" },
00097     { .wstr = (const uint32_t *) L"Wednesday" },
00098     { .wstr = (const uint32_t *) L"Thursday" },
00099     { .wstr = (const uint32_t *) L"Friday" },
00100     { .wstr = (const uint32_t *) L"Saturday" },
00101     { .wstr = (const uint32_t *) L"Jan" },
00102     { .wstr = (const uint32_t *) L"Feb" },
00103     { .wstr = (const uint32_t *) L"Mar" },
00104     { .wstr = (const uint32_t *) L"Apr" },
00105     { .wstr = (const uint32_t *) L"May" },
00106     { .wstr = (const uint32_t *) L"Jun" },
00107     { .wstr = (const uint32_t *) L"Jul" },
00108     { .wstr = (const uint32_t *) L"Aug" },
00109     { .wstr = (const uint32_t *) L"Sep" },
00110     { .wstr = (const uint32_t *) L"Oct" },
00111     { .wstr = (const uint32_t *) L"Nov" },
00112     { .wstr = (const uint32_t *) L"Dec" },
00113     { .wstr = (const uint32_t *) L"January" },
00114     { .wstr = (const uint32_t *) L"February" },
00115     { .wstr = (const uint32_t *) L"March" },
00116     { .wstr = (const uint32_t *) L"April" },
00117     { .wstr = (const uint32_t *) L"May" },
00118     { .wstr = (const uint32_t *) L"June" },
00119     { .wstr = (const uint32_t *) L"July" },
00120     { .wstr = (const uint32_t *) L"August" },
00121     { .wstr = (const uint32_t *) L"September" },
00122     { .wstr = (const uint32_t *) L"October" },
00123     { .wstr = (const uint32_t *) L"November" },
00124     { .wstr = (const uint32_t *) L"December" },
00125     { .wstr = (const uint32_t *) L"AM" },
00126     { .wstr = (const uint32_t *) L"PM" },
00127     { .wstr = (const uint32_t *) L"%a %b %e %H:%M:%S %Y" },
00128     { .wstr = (const uint32_t *) L"%m/%d/%y" },
00129     { .wstr = (const uint32_t *) L"%H:%M:%S" },
00130     { .wstr = (const uint32_t *) L"%I:%M:%S %p" },
00131     { .wstr = (const uint32_t *) L"" },
00132     { .wstr = (const uint32_t *) L"" },
00133     { .wstr = (const uint32_t *) L"" },
00134     { .wstr = (const uint32_t *) L"" },
00135     { .wstr = (const uint32_t *) L"" },
00136     { .string = "\7" },
00137     { .word = 19971201 },
00138     { .string = "\4" },
00139     { .string = "\7" },
00140     { .string = "\1" },
00141     { .string = "\1" },
00142     { .string = "" },
00143     { .string = "%a %b %e %H:%M:%S %Z %Y" },
00144     { .wstr = (const uint32_t *) L"%a %b %e %H:%M:%S %Z %Y" },
00145     { .string = _nl_C_codeset }
00146   }
00147 };