diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2002-06-17 09:45:15 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2002-06-17 09:45:15 +0000 |
commit | d6b2a407783dbbd6c9680601da005de0bb0ff37d (patch) | |
tree | d72244507fab5c5c59d12aa10fa411943631c56c /libc/misc/time/localtime.c | |
parent | a7ce5bbdcd1217af1aab4c15e4ce337c8ef33973 (diff) |
Commit the new time stuff, even though I haven't made it threadsafe yet.
At least people can play with it. Also, fix a buglet in setenv.c.
Diffstat (limited to 'libc/misc/time/localtime.c')
-rw-r--r-- | libc/misc/time/localtime.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libc/misc/time/localtime.c b/libc/misc/time/localtime.c deleted file mode 100644 index 22f5035e9..000000000 --- a/libc/misc/time/localtime.c +++ /dev/null @@ -1,24 +0,0 @@ - -#include <time.h> -#include <sys/time.h> - -/* Our static data lives in __time_static.c */ -extern struct tm __tmb; - - -extern void __tm_conv(); - -struct tm *localtime(__const time_t *timep) -{ - struct timezone tz; - time_t offt; - - gettimeofday((void *) 0, &tz); - - offt = -tz.tz_minuteswest * 60L; - - /* tmb.tm_isdst = ? */ - __tm_conv(&__tmb, timep, offt); - - return &__tmb; -} |