/freebsd-current/usr.sbin/rtadvd/ |
H A D | timer_subr.c | 66 uint32_t hour; local 74 hour = min / 60; 77 day = hour / 24; 78 hour = hour % 24; 83 if (hour > 0) 84 p += sprintf(p, "%" PRIu32 "h", hour);
|
/freebsd-current/sys/kern/ |
H A D | subr_clock.c | 159 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || year < 1970 || 185 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 + 213 !validbcd(bct->day) || !validbcd(bct->hour) || 219 bct->hour, bct->min, bct->sec); 226 ct.hour = FROMBCD(bct->hour); 234 if (ct.hour == 12) 235 ct.hour = 0; 237 ct.hour += 12; 276 ct->hour [all...] |
/freebsd-current/contrib/ntp/libntp/ |
H A D | caltontp.c | 51 || (jt->hour > 24) 69 ntpcal_etime_to_seconds(jt->hour, jt->minute,
|
H A D | clocktime.c | 2 * 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-current/sys/dev/rtwn/ |
H A D | if_rtwn_fw.h | 43 uint8_t hour; member in struct:r92c_fw_hdr
|
/freebsd-current/usr.bin/at/ |
H A D | parsetime.c | 92 { "hour", HOURS,0 }, /* hours ... */ 364 int hour, minute = 0; local 367 hour = atoi(sc_token); 381 minute = hour%100; 384 hour = hour/100; 390 if (hour > 12) 394 if (hour != 12) /* 12:xx PM is 12:xx, not 24:xx */ 395 hour += 12; 397 if (hour [all...] |
/freebsd-current/contrib/ntp/scripts/build/ |
H A D | updateBEDate | 26 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-current/sys/amd64/vmm/io/ |
H A D | vrtc.c | 58 uint8_t hour; member in struct:rtcdev 185 int hour; local 211 KASSERT(ct.hour >= 0 && ct.hour <= 23, ("invalid clocktime hour %d", 212 ct.hour)); 227 hour = ct.hour; 230 * Convert to the 12-hour format. 232 switch (ct.hour) { 289 int century, error, hour, pm, year; local [all...] |
/freebsd-current/contrib/ntp/util/ |
H A D | tg.c | 32 * 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-current/sys/dev/iicbus/rtc/ |
H A D | pcf85063.c | 62 uint8_t hour; member in struct:pcf85063_time 133 /* read hour format (12/24 hour mode) */ 150 /* 12 hour mode */ 151 bcd.hour = data.hour & 0x1F; 152 /* Check if hour is pm */ 153 bcd.ispm = data.hour & 0x20; 155 /* 24 hour mode */ 156 bcd.hour [all...] |
H A D | isl12xx.c | 118 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 D | rx8803.c | 65 uint8_t hour; member in struct:rx8803_time 125 bcd.hour = data.hour & 0x3F; 151 data.hour = bcd.hour;
|
H A D | rtc8583.c | 64 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-current/sys/dev/dialog/da9063/ |
H A D | da9063_rtc.c | 65 uint8_t sec, min, hour, day, mon, year; local 80 error = DA9063_READ(sc->parent, DA9063_COUNT_H, &hour); 100 ct->hour = hour & DA9063_COUNT_H_COUNT_HOUR_MASK; 124 error = DA9063_WRITE(sc->parent, DA9063_COUNT_H, ct->hour); 170 } while (ct.min != oldct.min || ct.hour != oldct.hour ||
|
/freebsd-current/contrib/ntp/ntpd/ |
H A D | refclock_fg.c | 279 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 D | refclock_hpgps.c | 416 &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 D | refclock_datum.c | 139 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...] |
/freebsd-current/usr.sbin/cron/cron/ |
H A D | structs.h | 35 bitstr_t bit_decl(hour, HOUR_COUNT);
|
/freebsd-current/tools/tools/netrate/tcpp/ |
H A D | runit.pl | 12 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
/freebsd-current/sys/sys/ |
H A D | clock.h | 76 int hour; /* hour (0 - 23) */ member in struct:clocktime 96 * is true, the incoming hour and ispm values are interpreted as 12-hour am/pm 97 * representation of the hour, otherwise hour is interpreted as 24-hour and ispm 104 * If the ampm arg is true, the hour and ispm fields are set to the 12-hour 105 * time plus a pm flag, otherwise the hour i 112 uint8_t hour; /* hour (0 - 23 or 1 - 12) */ member in struct:bcd_clocktime [all...] |
/freebsd-current/sys/arm/nvidia/ |
H A D | as3722_rtc.c | 58 ct.hour = bcd2bin(buf[2] & 0x3F); 83 buf[2] = bin2bcd(ct.hour);
|
/freebsd-current/contrib/ntp/parseutil/ |
H A D | testdcf.c | 51 #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-current/contrib/wpa/src/utils/ |
H A D | os_win32.c | 62 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-current/usr.bin/grdc/ |
H A D | grdc.c | 7 * -t: output time in 12-hour format 14 * modified 03-25-03 for 12 hour option 67 int hour, minute, second; local 169 hour = tm->tm_hour; 176 hour = (n / 3600) % 100; 184 set(hour % 10, 20); 185 set(hour / 10, 24);
|
/freebsd-current/contrib/sendmail/contrib/ |
H A D | bounce-resender.pl | 138 $hour = (localtime)[2]; 139 $char = chr(ord("A") + $hour); 163 $next = $char = $hour = undef;
|