Lines Matching refs:hour
159 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || year < 1970 || in clock_ct_to_ts()
185 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 + in clock_ct_to_ts()
213 !validbcd(bct->day) || !validbcd(bct->hour) || in clock_bcd_to_ts()
219 bct->hour, bct->min, bct->sec); in clock_bcd_to_ts()
226 ct.hour = FROMBCD(bct->hour); in clock_bcd_to_ts()
234 if (ct.hour == 12) in clock_bcd_to_ts()
235 ct.hour = 0; in clock_bcd_to_ts()
237 ct.hour += 12; in clock_bcd_to_ts()
276 ct->hour = rsec / 3600; in clock_ts_to_ct()
295 KASSERT(ct->hour >= 0 && ct->hour <= 23, in clock_ts_to_ct()
296 ("hour %d not in 0-23", ct->hour)); in clock_ts_to_ct()
314 if (ct.hour >= 12) { in clock_ts_to_bcd()
315 ct.hour -= 12; in clock_ts_to_bcd()
318 if (ct.hour == 0) in clock_ts_to_bcd()
319 ct.hour = 12; in clock_ts_to_bcd()
325 bct->hour = TOBCD(ct.hour); in clock_ts_to_bcd()
341 bct->hour, bct->min, bct->sec, in clock_print_bcd()
346 bct->hour, bct->min, bct->sec); in clock_print_bcd()
359 ct->hour, ct->min, ct->sec, in clock_print_ct()
364 ct->hour, ct->min, ct->sec); in clock_print_ct()