Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 25 of 204) sorted by relevance

123456789

/freebsd/sys/kern/
H A Dsubr_clock.c159 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()
[all …]
/freebsd/usr.sbin/rtadvd/
H A Dtimer_subr.c66 uint32_t hour; in sec2str() local
74 hour = min / 60; in sec2str()
77 day = hour / 24; in sec2str()
78 hour = hour % 24; in sec2str()
83 if (hour > 0) in sec2str()
84 p += sprintf(p, "%" PRIu32 "h", hour); in sec2str()
/freebsd/sys/amd64/vmm/io/
H A Dvrtc.c59 uint8_t hour; member
186 int hour; in secs_to_rtc() local
212 KASSERT(ct.hour >= 0 && ct.hour <= 23, ("invalid clocktime hour %d", in secs_to_rtc()
213 ct.hour)); in secs_to_rtc()
228 hour = ct.hour; in secs_to_rtc()
233 switch (ct.hour) { in secs_to_rtc()
236 hour = 12; in secs_to_rtc()
244 hour = ct.hour % 12; in secs_to_rtc()
249 rtc->hour = rtcset(rtc, hour); in secs_to_rtc()
251 if ((rtc->reg_b & RTCSB_24HR) == 0 && ct.hour >= 12) in secs_to_rtc()
[all …]
/freebsd/usr.bin/at/
H A Dparsetime.c364 int hour, minute = 0; in tod() local
367 hour = atoi(sc_token); in tod()
381 minute = hour%100; in tod()
384 hour = hour/100; in tod()
390 if (hour > 12) in tod()
394 if (hour != 12) /* 12:xx PM is 12:xx, not 24:xx */ in tod()
395 hour += 12; in tod()
397 if (hour == 12) /* 12:xx AM is 00:xx, not 12:xx */ in tod()
398 hour = 0; in tod()
402 else if (hour > 23) in tod()
[all …]
/freebsd/sys/dev/iicbus/rtc/
H A Dpcf85063.c62 uint8_t hour; member
151 bcd.hour = data.hour & 0x1F; in pcf85063_get_time()
153 bcd.ispm = data.hour & 0x20; in pcf85063_get_time()
156 bcd.hour = data.hour & 0x3F; in pcf85063_get_time()
189 data.hour = bcd.hour; in pcf85063_set_time()
H A Disl12xx.c118 uint8_t sec, min, hour, day, month, year; member
259 if (tregs.hour & ISL12XX_24HR_FLAG) { in isl12xx_gettime()
269 bct.hour = tregs.hour & hourmask; in isl12xx_gettime()
273 bct.ispm = tregs.hour & ISL12XX_PM_FLAG; in isl12xx_gettime()
305 tregs.hour = bct.hour | ampmflags; in isl12xx_settime()
H A Drx8803.c65 uint8_t hour; member
125 bcd.hour = data.hour & 0x3F; in rx8803_gettime()
151 data.hour = bcd.hour; in rx8803_settime()
H A Drtc8583.c64 uint8_t msec, sec, min, hour, day, month; member
237 bct.hour = tregs.hour & 0x3f; in rtc8583_gettime()
264 tregs.hour = bct.hour; in rtc8583_settime()
H A Dds13rtc.c158 uint8_t sec, min, hour, wday, day, month, year; member
382 bct.ispm = tregs.hour & DS13xx_B_HOUR_PM; in ds13rtc_gettime()
385 bct.hour = tregs.hour & hourmask; in ds13rtc_gettime()
444 tregs.hour = bct.hour | pmflags; in ds13rtc_settime()
/freebsd/contrib/ntp/util/
H A Dtg.c263 int minute, hour, day, year; in main() local
312 &hour, &minute); in main()
355 hour = tm->tm_hour; in main()
376 year, day, hour, minute, second, tone); in main()
378 year / 10, day, hour, minute, year % 10); in main()
393 0, year, day, hour, minute, second); in main()
414 hour++; in main()
416 if (hour >= 24) { in main()
417 hour = 0; in main()
436 day, hour, minute, year % 10); in main()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_fg.c279 and doubles min every hour at HH:10:ss for a minute. in fg_receive()
284 pp->hour = BP1(6)*10 + BP2(6); in fg_receive()
286 pp->hour = BP1(5)*10 + BP2(5); in fg_receive()
288 if ((up->y2kwarn > 10) && (pp->hour == 10)) { in fg_receive()
294 pp->hour = BP1(5)*10 + BP2(5); in fg_receive()
301 if ((pp->hour == 10) && (pp->minute == 10)) { in fg_receive()
306 "%d %d %d %d %d", pp->year, pp->day, pp->hour, in fg_receive()
314 pp->year, pp->day, pp->hour, pp->minute, pp->second); in fg_receive()
H A Drefclock_hpgps.c416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second, in hpgps_receive()
493 pp->hour -= up->tzhour; in hpgps_receive()
497 pp->hour--; in hpgps_receive()
501 pp->hour++; in hpgps_receive()
503 if (pp->hour < 0) { in hpgps_receive()
504 pp->hour += 24; in hpgps_receive()
515 if (pp->hour > 23) { in hpgps_receive()
516 pp->hour -= 24; in hpgps_receive()
H A Drefclock_mx4200.c883 pp->year, pp->day, pp->hour, pp->minute, pp->second, in mx4200_receive()
956 int hour, minute, second, leapsec_warn; in mx4200_parse_t() local
966 &hour, &minute, &second, &time_sync, &op_mode, in mx4200_parse_t()
995 if (second > 60 || minute > 59 || hour > 23 || in mx4200_parse_t()
996 second < 0 || minute < 0 || hour < 0) { in mx4200_parse_t()
999 hour, minute, second); in mx4200_parse_t()
1009 hour, minute, second); in mx4200_parse_t()
1038 hour--; in mx4200_parse_t()
1039 if (hour < 0) { in mx4200_parse_t()
1040 hour in mx4200_parse_t()
[all...]
H A Drefclock_datum.c139 int hour; /* hour */ member
561 datum_pts->hour = 10*((datum_pts->retbuf[2] & 0x30)>>4) + in datum_pts_receive()
580 datum_pts->hour, in datum_pts_receive()
622 datum_pts->hour, in datum_pts_receive()
663 datum_pts->hour, in datum_pts_receive()
774 datum_pts->hour, in datum_pts_receive()
H A Drefclock_arc.c198 little less than an hour between resyncs and to try to avoid
199 clashing with any regular event at a regular time-past-the-hour
510 Set whenever we receive a valid time sample in the first hour of
513 Outside the special hour this value is unconditionally set
526 hour.
1169 || !get2(pp->a_lastcode + 1, &pp->hour) in arc_receive()
1195 if((pp->hour < 0) || (pp->hour > 23) || in arc_receive()
1238 pp->hour, pp->minute, pp->second, in arc_receive()
1275 pp->hour in arc_receive()
[all...]
H A Drefclock_neoclock4x.c555 neol_atoi_len(&pp->a_lastcode[NEOCLOCK4X_OFFSET_HOUR], &pp->hour, 2); in neoclock4x_receive()
577 if((pp->hour < 0) || (pp->hour > 23) || in neoclock4x_receive()
604 calc_utc = neol_mktime(pp->year, month, day, pp->hour, pp->minute, pp->second); in neoclock4x_receive()
609 neol_localtime(calc_utc, &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second); in neoclock4x_receive()
622 pp->hour, pp->minute, pp->second, in neoclock4x_receive()
634 up->utc_hour = pp->hour; in neoclock4x_receive()
817 * => year=1980, mon=12, day=31, hour=23, min=59, sec=59.
834 int hour, in neol_mktime() argument
845 )*24 + hour /* no in neol_mktime()
855 neol_localtime(unsigned long utc,int * year,int * month,int * day,int * hour,int * min,int * sec) neol_localtime() argument
[all...]
H A Drefclock_gpsvme.c75 short last_hour; /* last hour (monitor leap sec) */
189 pp->hour = BCD2INT2((thi & 0x0000FF00) >> 8); in psc_poll()
199 pp->hour, pp->minute, pp->second, pp->nsec, status, thi, in psc_poll()
215 if (pp->hour < up->last_hour) { in psc_poll()
219 up->last_hour = pp->hour; in psc_poll()
H A Drefclock_hopfser.c243 &pp->hour, in hopfserial_receive()
255 if ((8 != converted) || (pp->hour < 0) || (pp->hour > 23) || in hopfserial_receive()
287 pp->hour, in hopfserial_receive()
H A Drefclock_jjy.c190 int year, month, day, hour, minute, second, msecond ; member
433 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_TIME "# Invalid time : rc=%d hour=%d minute=%d second=%d"
434 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_DATETIME "# Invalid time : rc=%d year=%d month=%d day=%d hour=%d minute=%d second=%d"
1030 pp->hour = up->hour ; in jjy_synctime()
1038 pp->hour -= 9 ; in jjy_synctime()
1039 if ( pp->hour < 0 ) { in jjy_synctime()
1040 pp->hour += 24 ; in jjy_synctime()
1068 up->hour, up->minute, up->second, up->msecond, in jjy_synctime()
1069 pp->year, pp->day, pp->hour, p in jjy_synctime()
[all...]
/freebsd/sys/dev/dialog/da9063/
H A Dda9063_rtc.c65 uint8_t sec, min, hour, day, mon, year; in da9063_rtc_read_ct() local
80 error = DA9063_READ(sc->parent, DA9063_COUNT_H, &hour); in da9063_rtc_read_ct()
100 ct->hour = hour & DA9063_COUNT_H_COUNT_HOUR_MASK; in da9063_rtc_read_ct()
124 error = DA9063_WRITE(sc->parent, DA9063_COUNT_H, ct->hour); in da9063_rtc_write_ct()
170 } while (ct.min != oldct.min || ct.hour != oldct.hour || in da9063_rtc_gettime()
/freebsd/contrib/ntp/parseutil/
H A Dtestdcf.c60 long hour; member
245 clock_time->hour = ext_bf(buffer, DCF_H10); in convert_rawdcf()
246 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1); in convert_rawdcf()
417 clock_time.hour = 0; in main()
458 clock_time.hour = 0; in main()
492 … (int)clock_time.hour, (int)clock_time.minute, (int)i, (int)clock_time.day, (int)clock_time.month, in main()
/freebsd/contrib/wpa/src/utils/
H A Dos_win32.c62 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
70 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
78 tm.tm_hour = hour; in os_mktime()
112 tm->hour = tm2->tm_hour; in os_gmtime()
/freebsd/contrib/kyua/utils/
H A Ddatetime.cpp317 const int day, const int hour, in from_values() argument
324 PRE(hour >= 0 && hour <= 23); in from_values()
345 timedata.tm_hour = hour; in from_values()
436 const int day, const int hour, in set_mock_now() argument
440 mock_now = timestamp::from_values(year, month, day, hour, minute, second, in set_mock_now()
/freebsd/usr.bin/grdc/
H A Dgrdc.c67 int hour, minute, second; in main() local
169 hour = tm->tm_hour; in main()
176 hour = (n / 3600) % 100; in main()
184 set(hour % 10, 20); in main()
185 set(hour / 10, 24); in main()
/freebsd/contrib/dialog/
H A Dtimebox.c141 int hour, in dialog_timebox() argument
195 DLG_TRACE2N("hour", hour); in dialog_timebox()
222 if (hour >= 24 || minute >= 60 || second >= 60) { in dialog_timebox()
249 hour >= 0 ? hour : current.tm_hour, in dialog_timebox()
361 hour = hr_box.value; in dialog_timebox()

123456789