Lines Matching refs:ts
29 void timelib_unixtime2date(timelib_sll ts, timelib_sll *y, timelib_sll *m, timelib_sll *d) in timelib_unixtime2date() argument
35 days = ts / SECS_PER_DAY + HINNANT_EPOCH_SHIFT; in timelib_unixtime2date()
38 t = ts % SECS_PER_DAY; in timelib_unixtime2date()
53 TIMELIB_DEBUG(printf("A: ts=%lld, year=%lld, month=%lld, day=%lld,", ts, *y, *m, *d);); in timelib_unixtime2date()
57 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) in timelib_unixtime2gmt() argument
62 timelib_unixtime2date(ts, &tm->y, &tm->m, &tm->d); in timelib_unixtime2gmt()
63 remainder = ts % SECS_PER_DAY; in timelib_unixtime2gmt()
77 tm->sse = ts; in timelib_unixtime2gmt()
120 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts) in timelib_unixtime2local() argument
131 timelib_unixtime2gmt(tm, ts + tm->z + (tm->dst * 3600)); in timelib_unixtime2local()
133 tm->sse = ts; in timelib_unixtime2local()
140 gmt_offset = timelib_get_time_zone_info(ts, tz); in timelib_unixtime2local()
141 timelib_unixtime2gmt(tm, ts + gmt_offset->offset); in timelib_unixtime2local()
144 tm->sse = ts; in timelib_unixtime2local()