mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-03 12:56:50 +00:00
39 lines
920 B
C
39 lines
920 B
C
//--------------------------------------------------------------------------//
|
|
// This file is in the public domain, so clarified as of //
|
|
// 2009-05-17 by Arthur David Olson. //
|
|
//--------------------------------------------------------------------------//
|
|
#include "time_tm.h"
|
|
#include "lib_macros.h"
|
|
#include "time_proto.h"
|
|
//--------------------------------------------------------------------------//
|
|
|
|
time_t ASM mktime(
|
|
REG(a0, struct tm *tmp)
|
|
)
|
|
{
|
|
time_t t;
|
|
|
|
int err = lock();
|
|
if (err) {
|
|
errno = err;
|
|
return -1;
|
|
}
|
|
|
|
tzset_unlocked();
|
|
t = mktime_tzname(lclptr, tmp, true);
|
|
|
|
unlock();
|
|
return t;
|
|
}
|
|
|
|
|
|
time_t ASM mktime_z(
|
|
REG(a1, struct state *sp),
|
|
REG(a0, struct tm *tmp)
|
|
)
|
|
{
|
|
return mktime_tzname(sp, tmp, false);
|
|
}
|
|
|
|
//--------------------------------------------------------------------------//
|