diff options
Diffstat (limited to 'lib/libc/time/localtime_r.c')
| -rw-r--r-- | lib/libc/time/localtime_r.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/time/localtime_r.c b/lib/libc/time/localtime_r.c new file mode 100644 index 00000000..1fb620a4 --- /dev/null +++ b/lib/libc/time/localtime_r.c @@ -0,0 +1,7 @@ +#include <time.h> + +struct tm *localtime_r(const time_t *restrict timer, struct tm *restrict result) +{ + time_t local = *timer - timezone; + return gmtime_r(&local, result); +} |
