Lines Matching full:seconds

88 		 unsigned int seconds, unsigned int nanoseconds)  in isc_interval_set()  argument
93 i->seconds = seconds; in isc_interval_set()
102 if (i->seconds == 0 && i->nanoseconds == 0) in isc_interval_iszero()
117 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) { in isc_time_set() argument
121 t->seconds = seconds; in isc_time_set()
129 t->seconds = 0; in isc_time_settoepoch()
138 if (t->seconds == 0 && t->nanoseconds == 0) in isc_time_isepoch()
175 * Ensure the tv_sec value fits in t->seconds. in isc_time_now()
177 if (sizeof(tv.tv_sec) > sizeof(t->seconds) && in isc_time_now()
181 t->seconds = tv.tv_sec; in isc_time_now()
219 * Ensure the resulting seconds value fits in the size of an in isc_time_nowplusinterval()
224 if ((tv.tv_sec > INT_MAX || i->seconds > INT_MAX) && in isc_time_nowplusinterval()
225 ((long long)tv.tv_sec + i->seconds > UINT_MAX)) in isc_time_nowplusinterval()
228 t->seconds = tv.tv_sec + i->seconds; in isc_time_nowplusinterval()
231 t->seconds++; in isc_time_nowplusinterval()
243 if (t1->seconds < t2->seconds) in isc_time_compare()
245 if (t1->seconds > t2->seconds) in isc_time_compare()
261 * Ensure the resulting seconds value fits in the size of an in isc_time_add()
266 if ((t->seconds > INT_MAX || i->seconds > INT_MAX) && in isc_time_add()
267 ((long long)t->seconds + i->seconds > UINT_MAX)) in isc_time_add()
270 result->seconds = t->seconds + i->seconds; in isc_time_add()
273 result->seconds++; in isc_time_add()
287 if ((unsigned int)t->seconds < i->seconds || in isc_time_subtract()
288 ((unsigned int)t->seconds == i->seconds && in isc_time_subtract()
292 result->seconds = t->seconds - i->seconds; in isc_time_subtract()
298 result->seconds--; in isc_time_subtract()
311 i1 = (isc_uint64_t)t1->seconds * NS_PER_S + t1->nanoseconds; in isc_time_microdiff()
312 i2 = (isc_uint64_t)t2->seconds * NS_PER_S + t2->nanoseconds; in isc_time_microdiff()
332 return ((isc_uint32_t)t->seconds); in isc_time_seconds()
337 time_t seconds; in isc_time_secondsastimet() local
343 * Ensure that the number of seconds represented by t->seconds in isc_time_secondsastimet()
344 * can be represented by a time_t. Since t->seconds is an unsigned in isc_time_secondsastimet()
352 * the unsigned int t->seconds is out range for tv_sec, which is in isc_time_secondsastimet()
356 * If the paradox in the if clause below is true, t->seconds is out in isc_time_secondsastimet()
359 seconds = (time_t)t->seconds; in isc_time_secondsastimet()
364 if (t->seconds > (~0U>>1) && seconds <= (time_t)(~0U>>1)) in isc_time_secondsastimet()
367 *secondsp = seconds; in isc_time_secondsastimet()
388 now = (time_t) t->seconds; in isc_time_formattimestamp()
405 now = (time_t)t->seconds; in isc_time_formathttptimestamp()
417 now = (time_t)t->seconds; in isc_time_formatISO8601()