1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-03 19:08:33 +00:00
Files
amiga-tz/library/time_init_ttinfo.c
2015-07-25 23:35:51 +02:00

20 lines
813 B
C

//--------------------------------------------------------------------------//
// This file is in the public domain, so clarified as of //
// 2009-05-17 by Arthur David Olson. //
//--------------------------------------------------------------------------//
#include "time_types.h"
#include "time_state.h"
//--------------------------------------------------------------------------//
/* Initialize *S to a value based on GMTOFF, ISDST, and ABBRIND. */
void init_ttinfo(struct ttinfo *s, int_fast32_t gmtoff, bool isdst, int abbrind)
{
s->tt_gmtoff = gmtoff;
s->tt_isdst = isdst;
s->tt_abbrind = abbrind;
s->tt_ttisstd = false;
s->tt_ttisgmt = false;
}
//--------------------------------------------------------------------------//