summaryrefslogtreecommitdiff
path: root/libc/misc/time/__time_locale.c
diff options
context:
space:
mode:
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 }
+ };