Lines Matching refs:t

222 void timelib_set_timezone_from_offset(timelib_time *t, timelib_sll utc_offset)  in timelib_set_timezone_from_offset()  argument
224 if (t->tz_abbr) { in timelib_set_timezone_from_offset()
225 timelib_free(t->tz_abbr); in timelib_set_timezone_from_offset()
227 t->tz_abbr = NULL; in timelib_set_timezone_from_offset()
229 t->z = utc_offset; in timelib_set_timezone_from_offset()
230 t->have_zone = 1; in timelib_set_timezone_from_offset()
231 t->zone_type = TIMELIB_ZONETYPE_OFFSET; in timelib_set_timezone_from_offset()
232 t->dst = 0; in timelib_set_timezone_from_offset()
233 t->tz_info = NULL; in timelib_set_timezone_from_offset()
236 void timelib_set_timezone_from_abbr(timelib_time *t, timelib_abbr_info abbr_info) in timelib_set_timezone_from_abbr() argument
238 if (t->tz_abbr) { in timelib_set_timezone_from_abbr()
239 timelib_free(t->tz_abbr); in timelib_set_timezone_from_abbr()
241 t->tz_abbr = timelib_strdup(abbr_info.abbr); in timelib_set_timezone_from_abbr()
243 t->z = abbr_info.utc_offset; in timelib_set_timezone_from_abbr()
244 t->have_zone = 1; in timelib_set_timezone_from_abbr()
245 t->zone_type = TIMELIB_ZONETYPE_ABBR; in timelib_set_timezone_from_abbr()
246 t->dst = abbr_info.dst; in timelib_set_timezone_from_abbr()
247 t->tz_info = NULL; in timelib_set_timezone_from_abbr()
250 void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz) in timelib_set_timezone() argument
254 gmt_offset = timelib_get_time_zone_info(t->sse, tz); in timelib_set_timezone()
255 t->z = gmt_offset->offset; in timelib_set_timezone()
262 t->dst = gmt_offset->is_dst; in timelib_set_timezone()
263 t->tz_info = tz; in timelib_set_timezone()
264 if (t->tz_abbr) { in timelib_set_timezone()
265 timelib_free(t->tz_abbr); in timelib_set_timezone()
267 t->tz_abbr = timelib_strdup(gmt_offset->abbr); in timelib_set_timezone()
270 t->have_zone = 1; in timelib_set_timezone()
271 t->zone_type = TIMELIB_ZONETYPE_ID; in timelib_set_timezone()
277 int timelib_apply_localtime(timelib_time *t, unsigned int localtime) in timelib_apply_localtime() argument
284 if (!t->tz_info) { in timelib_apply_localtime()
289 timelib_unixtime2local(t, t->sse); in timelib_apply_localtime()
294 timelib_unixtime2gmt(t, t->sse); in timelib_apply_localtime()
300 void timelib_set_fraction_from_timeval(timelib_time *t, struct timeval tp) in timelib_set_fraction_from_timeval() argument
302 t->f = (double) tp.tv_usec / 1000000; in timelib_set_fraction_from_timeval()