Searched refs:hour (Results 1 - 25 of 153) sorted by relevance

1234567

/freebsd-11-stable/usr.sbin/rtadvd/
H A Dtimer_subr.c65 uint32_t hour; local
73 hour = min / 60;
76 day = hour / 24;
77 hour = hour % 24;
82 if (hour > 0)
83 p += sprintf(p, "%" PRIu32 "h", hour);
/freebsd-11-stable/sys/kern/
H A Dsubr_clock.c165 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || year < 1970 ||
191 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 +
219 !validbcd(bct->day) || !validbcd(bct->hour) ||
225 bct->hour, bct->min, bct->sec);
232 ct.hour = FROMBCD(bct->hour);
240 if (ct.hour == 12)
241 ct.hour = 0;
243 ct.hour += 12;
282 ct->hour
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dcaltontp.c48 REQUIRE(jt->hour <= 24);
65 ntpcal_etime_to_seconds(jt->hour, jt->minute,
H A Dclocktime.c2 * clocktime - compute the NTP date from a day of year, hour, minute
35 * Take a time spec given as day-of-year, hour, minute and second as
54 int hour , /* hour of day */
55 int minute , /* minute of hour */
73 MINSPERHR * ((int32)hour + (int32)tzoff +
/freebsd-11-stable/usr.bin/at/
H A Dparsetime.c94 { "hour", HOURS,0 }, /* hours ... */
366 int hour, minute = 0; local
369 hour = atoi(sc_token);
383 minute = hour%100;
386 hour = hour/100;
392 if (hour > 12)
396 if (hour != 12) /* 12:xx PM is 12:xx, not 24:xx */
397 hour += 12;
399 if (hour
[all...]
/freebsd-11-stable/sys/mips/cavium/
H A Docteon_ds1337.c82 CT_CHECK(ct->hour < 0 || ct->hour > 23, "hour");
122 ct.hour = bcd2bin(reg[2] & 0x3f);
125 ct.hour = (ct.hour + 12) % 24;
175 reg[2] = bin2bcd(ct.hour); /* Force 0..23 format even if using AM/PM */
/freebsd-11-stable/sys/i386/isa/
H A Dpmtimer.c96 u_int second, minute, hour; local
124 hour = second / 3600;
129 hour, minute, second);
/freebsd-11-stable/contrib/ntp/scripts/build/
H A DupdateBEDate26 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
39 printf { $OFILE } "%s-%s-%s %02d:%02d", $mday,$m_abbr[$mon],$year,$hour,$min;
/freebsd-11-stable/sys/amd64/vmm/io/
H A Dvrtc.c57 uint8_t hour; member in struct:rtcdev
183 int hour; local
209 KASSERT(ct.hour >= 0 && ct.hour <= 23, ("invalid clocktime hour %d",
210 ct.hour));
225 hour = ct.hour;
228 * Convert to the 12-hour format.
230 switch (ct.hour) {
285 int century, error, hour, pm, year; local
[all...]
/freebsd-11-stable/contrib/ntp/util/
H A Dtg.c32 * year, hh the hour of day and mm the minute of hour. For instance,
149 {COEF, 1}, /* 20 1 hour units */
154 {COEF, 1}, /* 25 10 hour tens */
263 int minute, hour, day, year; local
312 &hour, &minute);
355 hour = tm->tm_hour;
376 year, day, hour, minute, second, tone);
378 year / 10, day, hour, minute, year % 10);
393 0, year, day, hour, minut
[all...]
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_fg.c279 and doubles min every hour at HH:10:ss for a minute.
284 pp->hour = BP1(6)*10 + BP2(6);
286 pp->hour = BP1(5)*10 + BP2(5);
288 if ((up->y2kwarn > 10) && (pp->hour == 10)) {
294 pp->hour = BP1(5)*10 + BP2(5);
301 if ((pp->hour == 10) && (pp->minute == 10)) {
306 "%d %d %d %d %d", pp->year, pp->day, pp->hour,
314 pp->year, pp->day, pp->hour, pp->minute, pp->second);
H A Drefclock_hpgps.c416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second,
493 pp->hour -= up->tzhour;
497 pp->hour--;
501 pp->hour++;
503 if (pp->hour < 0) {
504 pp->hour += 24;
515 if (pp->hour > 23) {
516 pp->hour -= 24;
H A Drefclock_datum.c139 int hour; /* hour */ member in struct:datum_pts_unit
551 ** Convert the seven bytes received in our time buffer to day, hour, minute,
561 datum_pts->hour = 10*((datum_pts->retbuf[2] & 0x30)>>4) +
578 printf("day %d, hour %d, minute %d, second %d, msec %d\n",
580 datum_pts->hour,
610 ** pick the one that gives the smallest error (+- one half hour). The time
617 ** a half hour of the Datum time (even with time zone differences).
622 datum_pts->hour,
663 datum_pts->hour,
[all...]
H A Drefclock_jjy.c190 int year, month, day, hour, minute, second, msecond ; member in struct:jjyunit
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 ;
1038 pp->hour -= 9 ;
1039 if ( pp->hour < 0 ) {
1040 pp->hour += 24 ;
1068 up->hour, up->minute, up->second, up->msecond,
1069 pp->year, pp->day, pp->hour, p
[all...]
/freebsd-11-stable/sys/dev/iicbus/
H A Disl12xx.c118 uint8_t sec, min, hour, day, month, year; member in struct:time_regs
259 if (tregs.hour & ISL12XX_24HR_FLAG) {
269 bct.hour = tregs.hour & hourmask;
273 bct.ispm = tregs.hour & ISL12XX_PM_FLAG;
305 tregs.hour = bct.hour | ampmflags;
H A Drtc8583.c64 uint8_t msec, sec, min, hour, day, month; member in struct:time_regs
237 bct.hour = tregs.hour & 0x3f;
264 tregs.hour = bct.hour;
/freebsd-11-stable/tools/tools/netrate/tcpp/
H A Drunit.pl13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
/freebsd-11-stable/sys/arm/nvidia/
H A Das3722_rtc.c61 ct.hour = bcd2bin(buf[2] & 0x3F);
86 buf[2] = bin2bcd(ct.hour);
/freebsd-11-stable/sys/dev/smartpqi/
H A Dsmartpqi_misc.c44 host_wellness_time->hour= (uint8_t)bin2bcd(ct.hour);
/freebsd-11-stable/sys/sys/
H A Dclock.h82 int hour; /* hour (0 - 23) */ member in struct:clocktime
102 * is true, the incoming hour and ispm values are interpreted as 12-hour am/pm
103 * representation of the hour, otherwise hour is interpreted as 24-hour and ispm
110 * If the ampm arg is true, the hour and ispm fields are set to the 12-hour
111 * time plus a pm flag, otherwise the hour i
118 uint8_t hour; /* hour (0 - 23 or 1 - 12) */ member in struct:bcd_clocktime
[all...]
/freebsd-11-stable/contrib/ntp/parseutil/
H A Dtestdcf.c51 #define DCFB_LEAP 0x0004 /* LEAP warning (1 hour prior to occurrence) */
60 long hour; member in struct:clocktime
107 * 16 A1 - expect zone change (1 hour before)
113 * 19 A2 - expect leap insertion/deletion (1 hour before)
245 clock_time->hour = ext_bf(buffer, DCF_H10);
246 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1);
417 clock_time.hour = 0;
458 clock_time.hour = 0;
492 (int)clock_time.hour, (in
[all...]
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dos_win32.c62 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument
70 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 ||
78 tm.tm_hour = hour;
112 tm->hour = tm2->tm_hour;
/freebsd-11-stable/contrib/sendmail/contrib/
H A Dbounce-resender.pl138 $hour = (localtime)[2];
139 $char = chr(ord("A") + $hour);
163 $next = $char = $hour = undef;
/freebsd-11-stable/sys/dev/bnxt/
H A Dbnxt_ioctl.h154 uint8_t hour; member in struct:bnxt_ioctl_hwrm_fw_get_time
166 uint8_t hour; member in struct:bnxt_ioctl_hwrm_fw_set_time
/freebsd-11-stable/contrib/ntp/libparse/
H A Dclk_sel240x.c147 clock_time->hour = ptime.tm_hour;

Completed in 283 milliseconds

1234567