Lines Matching refs:t
214 timelib_time *t = timelib_time_clone(old_time); in timelib_add() local
217 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_add()
222 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_add()
223 t->relative.y = interval->y * bias; in timelib_add()
224 t->relative.m = interval->m * bias; in timelib_add()
225 t->relative.d = interval->d * bias; in timelib_add()
226 t->relative.h = interval->h * bias; in timelib_add()
227 t->relative.i = interval->i * bias; in timelib_add()
228 t->relative.s = interval->s * bias; in timelib_add()
229 t->relative.us = interval->us * bias; in timelib_add()
231 t->have_relative = 1; in timelib_add()
232 t->sse_uptodate = 0; in timelib_add()
234 timelib_update_ts(t, NULL); in timelib_add()
236 timelib_update_from_sse(t); in timelib_add()
237 t->have_relative = 0; in timelib_add()
239 return t; in timelib_add()
245 timelib_time *t = timelib_time_clone(old_time); in timelib_sub() local
251 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_sub()
252 t->relative.y = 0 - (interval->y * bias); in timelib_sub()
253 t->relative.m = 0 - (interval->m * bias); in timelib_sub()
254 t->relative.d = 0 - (interval->d * bias); in timelib_sub()
255 t->relative.h = 0 - (interval->h * bias); in timelib_sub()
256 t->relative.i = 0 - (interval->i * bias); in timelib_sub()
257 t->relative.s = 0 - (interval->s * bias); in timelib_sub()
258 t->relative.us = 0 - (interval->us * bias); in timelib_sub()
259 t->have_relative = 1; in timelib_sub()
260 t->sse_uptodate = 0; in timelib_sub()
262 timelib_update_ts(t, NULL); in timelib_sub()
264 timelib_update_from_sse(t); in timelib_sub()
266 t->have_relative = 0; in timelib_sub()
268 return t; in timelib_sub()
287 timelib_time *t = timelib_time_clone(old_time); in timelib_add_wall() local
289 t->have_relative = 1; in timelib_add_wall()
290 t->sse_uptodate = 0; in timelib_add_wall()
293 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_add_wall()
295 timelib_update_ts(t, NULL); in timelib_add_wall()
297 timelib_update_from_sse(t); in timelib_add_wall()
302 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_add_wall()
303 t->relative.y = interval->y * bias; in timelib_add_wall()
304 t->relative.m = interval->m * bias; in timelib_add_wall()
305 t->relative.d = interval->d * bias; in timelib_add_wall()
307 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_add_wall()
308 timelib_update_ts(t, NULL); in timelib_add_wall()
312 t->sse += bias * timelib_hms_to_seconds(interval->h, interval->i, interval->s); in timelib_add_wall()
313 timelib_update_from_sse(t); in timelib_add_wall()
318 t->sse += bias * timelib_hms_to_seconds(temp_interval->h, temp_interval->i, temp_interval->s); in timelib_add_wall()
319 timelib_update_from_sse(t); in timelib_add_wall()
320 t->us += temp_interval->us * bias; in timelib_add_wall()
322 timelib_do_normalize(t); in timelib_add_wall()
323 timelib_update_ts(t, NULL); in timelib_add_wall()
327 timelib_do_normalize(t); in timelib_add_wall()
330 if (t->zone_type == TIMELIB_ZONETYPE_ID) { in timelib_add_wall()
331 timelib_set_timezone(t, t->tz_info); in timelib_add_wall()
333 t->have_relative = 0; in timelib_add_wall()
335 return t; in timelib_add_wall()
341 timelib_time *t = timelib_time_clone(old_time); in timelib_sub_wall() local
343 t->have_relative = 1; in timelib_sub_wall()
344 t->sse_uptodate = 0; in timelib_sub_wall()
347 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_sub_wall()
349 timelib_update_ts(t, NULL); in timelib_sub_wall()
350 timelib_update_from_sse(t); in timelib_sub_wall()
355 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_sub_wall()
356 t->relative.y = 0 - (interval->y * bias); in timelib_sub_wall()
357 t->relative.m = 0 - (interval->m * bias); in timelib_sub_wall()
358 t->relative.d = 0 - (interval->d * bias); in timelib_sub_wall()
360 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_sub_wall()
361 timelib_update_ts(t, NULL); in timelib_sub_wall()
365 t->sse -= bias * timelib_hms_to_seconds(interval->h, interval->i, interval->s); in timelib_sub_wall()
366 timelib_update_from_sse(t); in timelib_sub_wall()
371 t->sse -= bias * timelib_hms_to_seconds(temp_interval->h, temp_interval->i, temp_interval->s); in timelib_sub_wall()
372 timelib_update_from_sse(t); in timelib_sub_wall()
373 t->us -= temp_interval->us * bias; in timelib_sub_wall()
375 timelib_do_normalize(t); in timelib_sub_wall()
376 timelib_update_ts(t, NULL); in timelib_sub_wall()
380 timelib_do_normalize(t); in timelib_sub_wall()
383 if (t->zone_type == TIMELIB_ZONETYPE_ID) { in timelib_sub_wall()
384 timelib_set_timezone(t, t->tz_info); in timelib_sub_wall()
386 t->have_relative = 0; in timelib_sub_wall()
388 return t; in timelib_sub_wall()