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
This commit is contained in:
parent
efcd87fced
commit
0718113e06
@ -8,6 +8,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user