amiga-tz/library/time_localtime.c

19 lines
409 B
C

#include "time_header.h"
struct tm __localtime_tm;
struct tm* localtime(const time_t *const timep)
{
return localtime_tzset(timep, &__localtime_tm, true);
}
struct tm* localtime_r(const time_t *const timep, struct tm *tmp)
{
return localtime_tzset(timep, tmp, false);
}
struct tm* localtime_rz(timezone_t tz, const time_t *const timep, struct tm *tmp)
{
return localsub(tz, timep, 0, tmp);
}