mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-03 20:16:35 +00:00
36 lines
1.0 KiB
C
36 lines
1.0 KiB
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_types.h"
|
|
#include "time_state.h"
|
|
#include "time_proto.h"
|
|
//--------------------------------------------------------------------------//
|
|
|
|
static struct tm tm;
|
|
|
|
struct tm* ASM localtime(
|
|
REG(a0, const time_t *const timep))
|
|
{
|
|
return localtime_tzset(timep, &tm, true);
|
|
}
|
|
|
|
struct tm* ASM localtime_r(
|
|
REG(a0, const time_t *const timep),
|
|
REG(a1, struct tm *tmp))
|
|
{
|
|
return localtime_tzset(timep, tmp, false);
|
|
}
|
|
|
|
struct tm* ASM localtime_rz(
|
|
REG(a2, struct state *tz),
|
|
REG(a0, time_t const *timep),
|
|
REG(a1, struct tm *tmp))
|
|
{
|
|
return localsub(tz, timep, 0, tmp);
|
|
}
|
|
|
|
//--------------------------------------------------------------------------//
|