diff options
Diffstat (limited to 'src/time/gmtime.c')
-rw-r--r-- | src/time/gmtime.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/time/gmtime.c b/src/time/gmtime.c new file mode 100644 index 0000000..d4d5d1f --- /dev/null +++ b/src/time/gmtime.c @@ -0,0 +1,11 @@ +#include <time.h> + +#include "__time.h" + +struct tm *gmtime(const time_t *t) +{ + static struct tm tm; + __time_to_tm(*t, &tm); + tm.tm_isdst = 0; + return &tm; +} |