From 0718113e0663d4c411b267d60e86953b28d0024d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 5 Jul 2004 22:45:56 +0000 Subject: [PATCH] Added gmtime() and exported the timezone variable for now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8327 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/time/localtime.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/kernel/libroot/posix/time/localtime.c b/src/kernel/libroot/posix/time/localtime.c index 56e4e63b48..e94ff2a39f 100644 --- a/src/kernel/libroot/posix/time/localtime.c +++ b/src/kernel/libroot/posix/time/localtime.c @@ -8,6 +8,11 @@ #include +// ToDo: implement those for real! + +long timezone = 0; + + struct tm * localtime_r(const time_t *_timer, struct tm *tm) { @@ -22,3 +27,11 @@ localtime(const time_t *_timer) return localtime_r(_timer, &tm); } + +struct tm * +gmtime(const time_t *_timer) +{ + // ToDo: fix me! + static struct tm tm; + return localtime_r(_timer, &tm); +}