summaryrefslogtreecommitdiff
path: root/libc/misc/time/mktime.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/mktime.c
parentc2ac6db844679d707e0e93854416f764dee10fd9 (diff)
Add strptime, and commonize some locale strings
-Erik
Diffstat (limited to 'libc/misc/time/mktime.c')
-rw-r--r--libc/misc/time/mktime.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libc/misc/time/mktime.c b/libc/misc/time/mktime.c
index c767fb402..7286e666b 100644
--- a/libc/misc/time/mktime.c
+++ b/libc/misc/time/mktime.c
@@ -63,13 +63,7 @@
((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
#endif
-/* How many days come before each month (0-12). */
-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}
-};
+extern const unsigned short int __mon_yday[2][13];
static time_t ydhms_tm_diff