diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-19 23:34:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-19 23:34:12 +0000 |
commit | 089e0182638fc37d67f01738fb25d91cba7dcd97 (patch) | |
tree | 831e14c3cec2f925673b6775aef837634e005534 /libc/misc | |
parent | da26328fbdf34c5ef443531032f018b857b454aa (diff) |
Add in the timezone global from time.h, from a patch by
Jon Nelson <jnelson@boa.org>
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/time/tm_conv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/misc/time/tm_conv.c b/libc/misc/time/tm_conv.c index d345f7528..4d10f51b7 100644 --- a/libc/misc/time/tm_conv.c +++ b/libc/misc/time/tm_conv.c @@ -81,6 +81,9 @@ static const unsigned short int __mon_lengths[2][12] = { /* Leap years. */ {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} }; +/* This global is exported to the wide world in keeping + * with the interface in time.h */ +long int timezone; void __tm_conv(tmbuf, t, offset) @@ -92,6 +95,8 @@ time_t offset; register int y; register const unsigned short int *ip; + timezone = offset; + days = *t / SECS_PER_DAY; rem = *t % SECS_PER_DAY; rem += offset; |