Lines Matching refs:t

267 	timelib_time *t = timelib_time_clone(old_time);  in timelib_add()  local
270 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_add()
275 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_add()
276 t->relative.y = interval->y * bias; in timelib_add()
277 t->relative.m = interval->m * bias; in timelib_add()
278 t->relative.d = interval->d * bias; in timelib_add()
279 t->relative.h = interval->h * bias; in timelib_add()
280 t->relative.i = interval->i * bias; in timelib_add()
281 t->relative.s = interval->s * bias; in timelib_add()
282 t->relative.us = interval->us * bias; in timelib_add()
284 t->have_relative = 1; in timelib_add()
285 t->sse_uptodate = 0; in timelib_add()
287 timelib_update_ts(t, NULL); in timelib_add()
289 timelib_update_from_sse(t); in timelib_add()
290 t->have_relative = 0; in timelib_add()
292 return t; in timelib_add()
298 timelib_time *t = timelib_time_clone(old_time); in timelib_sub() local
304 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_sub()
305 t->relative.y = 0 - (interval->y * bias); in timelib_sub()
306 t->relative.m = 0 - (interval->m * bias); in timelib_sub()
307 t->relative.d = 0 - (interval->d * bias); in timelib_sub()
308 t->relative.h = 0 - (interval->h * bias); in timelib_sub()
309 t->relative.i = 0 - (interval->i * bias); in timelib_sub()
310 t->relative.s = 0 - (interval->s * bias); in timelib_sub()
311 t->relative.us = 0 - (interval->us * bias); in timelib_sub()
312 t->have_relative = 1; in timelib_sub()
313 t->sse_uptodate = 0; in timelib_sub()
315 timelib_update_ts(t, NULL); in timelib_sub()
317 timelib_update_from_sse(t); in timelib_sub()
319 t->have_relative = 0; in timelib_sub()
321 return t; in timelib_sub()
340 timelib_time *t = timelib_time_clone(old_time); in timelib_add_wall() local
342 t->have_relative = 1; in timelib_add_wall()
343 t->sse_uptodate = 0; in timelib_add_wall()
346 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_add_wall()
348 timelib_update_ts(t, NULL); in timelib_add_wall()
350 timelib_update_from_sse(t); in timelib_add_wall()
355 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_add_wall()
356 t->relative.y = interval->y * bias; in timelib_add_wall()
357 t->relative.m = interval->m * bias; in timelib_add_wall()
358 t->relative.d = interval->d * bias; in timelib_add_wall()
360 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_add_wall()
361 timelib_update_ts(t, NULL); in timelib_add_wall()
365 t->sse += bias * timelib_hms_to_seconds(interval->h, interval->i, interval->s); in timelib_add_wall()
366 timelib_update_from_sse(t); in timelib_add_wall()
371 t->sse += bias * timelib_hms_to_seconds(temp_interval->h, temp_interval->i, temp_interval->s); in timelib_add_wall()
372 timelib_update_from_sse(t); in timelib_add_wall()
373 t->us += temp_interval->us * bias; in timelib_add_wall()
375 timelib_do_normalize(t); in timelib_add_wall()
376 timelib_update_ts(t, NULL); in timelib_add_wall()
380 timelib_do_normalize(t); in timelib_add_wall()
383 if (t->zone_type == TIMELIB_ZONETYPE_ID) { in timelib_add_wall()
384 timelib_set_timezone(t, t->tz_info); in timelib_add_wall()
386 t->have_relative = 0; in timelib_add_wall()
388 return t; in timelib_add_wall()
394 timelib_time *t = timelib_time_clone(old_time); in timelib_sub_wall() local
396 t->have_relative = 1; in timelib_sub_wall()
397 t->sse_uptodate = 0; in timelib_sub_wall()
400 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_sub_wall()
402 timelib_update_ts(t, NULL); in timelib_sub_wall()
403 timelib_update_from_sse(t); in timelib_sub_wall()
408 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_sub_wall()
409 t->relative.y = 0 - (interval->y * bias); in timelib_sub_wall()
410 t->relative.m = 0 - (interval->m * bias); in timelib_sub_wall()
411 t->relative.d = 0 - (interval->d * bias); in timelib_sub_wall()
413 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_sub_wall()
414 timelib_update_ts(t, NULL); in timelib_sub_wall()
418 t->sse -= bias * timelib_hms_to_seconds(interval->h, interval->i, interval->s); in timelib_sub_wall()
419 timelib_update_from_sse(t); in timelib_sub_wall()
424 t->sse -= bias * timelib_hms_to_seconds(temp_interval->h, temp_interval->i, temp_interval->s); in timelib_sub_wall()
425 timelib_update_from_sse(t); in timelib_sub_wall()
426 t->us -= temp_interval->us * bias; in timelib_sub_wall()
428 timelib_do_normalize(t); in timelib_sub_wall()
429 timelib_update_ts(t, NULL); in timelib_sub_wall()
433 timelib_do_normalize(t); in timelib_sub_wall()
436 if (t->zone_type == TIMELIB_ZONETYPE_ID) { in timelib_sub_wall()
437 timelib_set_timezone(t, t->tz_info); in timelib_sub_wall()
439 t->have_relative = 0; in timelib_sub_wall()
441 return t; in timelib_sub_wall()