summaryrefslogtreecommitdiff
path: root/libc/misc/time/__time_locale.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-03-15 16:20:00 +0000
committerEric Andersen <andersen@codepoet.org>2002-03-15 16:20:00 +0000
commit103cbe2418eb707a44fd4e2ebf6292f7993a258c (patch)
tree95753b3f6119f8068b007fa7f5f9e94939c85aba /libc/misc/time/__time_locale.c
parentc2ac6db844679d707e0e93854416f764dee10fd9 (diff)
Add strptime, and commonize some locale strings
-Erik
Diffstat (limited to 'libc/misc/time/__time_locale.c')
-rw-r--r--libc/misc/time/__time_locale.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/libc/misc/time/__time_locale.c b/libc/misc/time/__time_locale.c
new file mode 100644
index 000000000..9956134cf
--- /dev/null
+++ b/libc/misc/time/__time_locale.c
@@ -0,0 +1,27 @@
+char const __weekday_name[][10] =
+ {
+ "Sunday", "Monday", "Tuesday", "Wednesday",
+ "Thursday", "Friday", "Saturday"
+ };
+char const __ab_weekday_name[][4] =
+ {
+ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
+ };
+char const __month_name[][10] =
+ {
+ "January", "February", "March", "April", "May", "June",
+ "July", "August", "September", "October", "November", "December"
+ };
+char const __ab_month_name[][4] =
+ {
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
+ };
+
+const unsigned short int __mon_yday[2][13] =
+ {
+ /* Normal years. */
+ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
+ /* Leap years. */
+ { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }
+ };