|
#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);
|
|
}
|