amiga-tz/library/time_timelocal.c

18 lines
290 B
C

#include "time_header.h"
time_t timelocal(struct tm *const tmp)
{
if (tmp != NULL)
tmp->tm_isdst = -1;
return mktime(tmp);
}
time_t timelocal_z(const timezone_t sp, struct tm *const tmp)
{
if (tmp != NULL)
tmp->tm_isdst = -1;
return mktime_z(sp, tmp);
}