amiga-tz/library/time_init_ttinfo.c

15 lines
329 B
C

#include "time_header.h"
/**
* @brief
* 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;
}