| /trueos/usr.sbin/rtadvd/ |
| HD | timer_subr.c | 65 uint32_t hour; in sec2str() local 73 hour = min / 60; in sec2str() 76 day = hour / 24; in sec2str() 77 hour = hour % 24; in sec2str() 82 if (hour > 0) in sec2str() 83 p += sprintf(p, "%" PRIu32 "h", hour); in sec2str()
|
| /trueos/contrib/ntp/ntpd/ |
| HD | refclock_jjy.c | 172 int year, month, day, hour, minute, second, msecond ; member 518 pp->hour = up->hour ; in jjy_receive() 526 pp->hour -= 9 ; in jjy_receive() 527 if ( pp->hour < 0 ) { in jjy_receive() 528 pp->hour += 24 ; in jjy_receive() 538 up->year, up->month, up->day, up->hour, up->minute, up->second, up->msecond/100 ) ; in jjy_receive() 540 pp->year, pp->day, pp->hour, pp->minute, pp->second, (int)(pp->nsec/100000000) ) ; in jjy_receive() 550 up->year, up->month, up->day, up->hour, up->minute, up->second, up->msecond/100 ) ; in jjy_receive() 665 rc = sscanf ( pBuf, "%2d:%2d:%2d", &up->hour, &up->minute, &up->second ) ; in jjy_receive_tristate_jjy01() 666 if ( rc != 3 || up->hour > 23 || up->minute > 59 || up->second > 60 ) { in jjy_receive_tristate_jjy01() [all …]
|
| HD | refclock_fg.c | 294 pp->hour = BP1(6)*10 + BP2(6); in fg_receive() 296 pp->hour = BP1(5)*10 + BP2(5); in fg_receive() 298 if((up->y2kwarn > 10) && (pp->hour == 10)) in fg_receive() 305 pp->hour = BP1(5)*10 + BP2(5); in fg_receive() 312 if((pp->hour == 10) && (pp->minute == 10)) in fg_receive() 317 sprintf(pp->a_lastcode, "%d %d %d %d %d", pp->year, pp->day, pp->hour, pp->minute, pp->second); in fg_receive() 324 pp->year, pp->day, pp->hour, pp->minute, pp->second); in fg_receive()
|
| HD | refclock_hpgps.c | 416 &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()
|
| HD | refclock_wwvb.c | 279 &syncchar, &pp->day, &pp->hour, &pp->minute, in wwvb_receive() 291 &pp->hour, &pp->minute, &pp->second, &pp->nsec, in wwvb_receive() 303 &syncchar, &pp->year, &month, &day, &pp->hour, in wwvb_receive() 435 if (pp->sloppyclockflag & CLK_FLAG4 && pp->hour < in wwvb_poll() 438 up->lasthour = pp->hour; in wwvb_poll()
|
| HD | refclock_mx4200.c | 891 pp->year, pp->day, pp->hour, pp->minute, pp->second, in mx4200_receive() 964 int hour, minute, second, leapsec; in mx4200_parse_t() local 974 &hour, &minute, &second, &time_sync, &op_mode, in mx4200_parse_t() 1003 if (second > 60 || minute > 59 || hour > 23 || in mx4200_parse_t() 1004 second < 0 || minute < 0 || hour < 0) { in mx4200_parse_t() 1007 hour, minute, second); in mx4200_parse_t() 1017 hour, minute, second); in mx4200_parse_t() 1046 hour--; in mx4200_parse_t() 1047 if (hour < 0) { in mx4200_parse_t() 1048 hour = 23; in mx4200_parse_t() [all …]
|
| HD | refclock_neoclock4x.c | 562 neol_atoi_len(&pp->a_lastcode[NEOCLOCK4X_OFFSET_HOUR], &pp->hour, 2); in neoclock4x_receive() 584 if((pp->hour < 0) || (pp->hour > 23) || in neoclock4x_receive() 611 calc_utc = neol_mktime(pp->year, month, day, pp->hour, pp->minute, pp->second); in neoclock4x_receive() 616 neol_localtime(calc_utc, &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second); in neoclock4x_receive() 629 pp->hour, pp->minute, pp->second, in neoclock4x_receive() 641 up->utc_hour = pp->hour; in neoclock4x_receive() 841 int hour, in neol_mktime() argument 852 )*24 + hour /* now have hours */ in neol_mktime() 862 int* hour, in neol_localtime() argument 870 *hour = utc % 24; in neol_localtime()
|
| HD | refclock_arc.c | 1150 || !get2(pp->a_lastcode + 1, &pp->hour) in arc_receive() 1176 if((pp->hour < 0) || (pp->hour > 23) || in arc_receive() 1219 pp->hour, pp->minute, pp->second, in arc_receive() 1256 pp->hour--; in arc_receive() 1257 if (pp->hour < 0) { in arc_receive() 1258 pp->hour = 23; in arc_receive() 1286 local.tm_hour = pp->hour; in arc_receive() 1349 pp->hour = gmtp->tm_hour; in arc_receive() 1356 pp->year,month,gmtp->tm_mday,pp->hour,pp->minute, in arc_receive() 1413 if((pp->hour == 0) && in arc_receive()
|
| HD | refclock_datum.c | 151 int hour; /* hour */ member 654 datum_pts->hour = 10*((datum_pts->retbuf[2] & 0x30)>>4) + in datum_pts_receive() 673 datum_pts->hour, in datum_pts_receive() 715 datum_pts->hour, in datum_pts_receive() 756 datum_pts->hour, in datum_pts_receive() 867 datum_pts->hour, in datum_pts_receive()
|
| HD | refclock_gpsvme.c | 191 pp->hour = BCD2INT2((thi & 0x0000FF00) >> 8); in psc_poll() 200 pp->day, pp->hour, pp->minute, pp->second, pp->nsec, status, thi, in psc_poll() 216 if (pp->hour < up->last_hour) { in psc_poll() 220 up->last_hour = pp->hour; in psc_poll()
|
| HD | refclock_chronolog.c | 260 pp->hour = gmtp->tm_hour; in chronolog_receive() 266 adjyear,adjmon,gmtp->tm_mday,pp->hour,pp->minute, in chronolog_receive() 275 pp->hour = hours; in chronolog_receive() 298 up->lasthour = pp->hour; in chronolog_receive()
|
| HD | refclock_hopfser.c | 258 &pp->hour, in hopfserial_receive() 270 if((pp->hour < 0) || (pp->hour > 23) || in hopfserial_receive() 302 pp->hour, in hopfserial_receive()
|
| /trueos/usr.bin/at/ |
| HD | parsetime.c | 363 int hour, minute = 0; in tod() local 366 hour = atoi(sc_token); in tod() 380 minute = hour%100; in tod() 383 hour = hour/100; in tod() 389 if (hour > 12) in tod() 393 if (hour != 12) /* 12:xx PM is 12:xx, not 24:xx */ in tod() 394 hour += 12; in tod() 396 if (hour == 12) /* 12:xx AM is 00:xx, not 12:xx */ in tod() 397 hour = 0; in tod() 401 else if (hour > 23) in tod() [all …]
|
| /trueos/contrib/ntp/util/ |
| HD | tg.c | 263 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 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() 435 year / 10, day, hour, minute, year % in main() [all …]
|
| /trueos/sys/mips/cavium/ |
| HD | octeon_ds1337.c | 82 CT_CHECK(ct->hour < 0 || ct->hour > 23, "hour"); in validate_ct_struct() 122 ct.hour = bcd2bin(reg[2] & 0x3f); in cvmx_rtc_ds1337_read() 125 ct.hour = (ct.hour + 12) % 24; in cvmx_rtc_ds1337_read() 176 reg[2] = bin2bcd(ct.hour); /* Force 0..23 format even if using AM/PM */ in cvmx_rtc_ds1337_write()
|
| /trueos/contrib/wpa/src/utils/ |
| HD | os_win32.c | 50 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument 58 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime() 66 tm.tm_hour = hour; in os_mktime() 100 tm->hour = tm2->tm_hour; in os_gmtime()
|
| HD | os_internal.c | 44 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument 50 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime() 58 tm.tm_hour = hour; in os_mktime() 77 tm->hour = tm2->tm_hour; in os_gmtime()
|
| /trueos/contrib/ntp/parseutil/ |
| HD | testdcf.c | 59 long hour; member 243 clock_time->hour = ext_bf(buffer, DCF_H10); in convert_rawdcf() 244 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1); in convert_rawdcf() 415 clock_time.hour = 0; in main() 456 clock_time.hour = 0; in main() 490 … (int)clock_time.hour, (int)clock_time.minute, (int)i, (int)clock_time.day, (int)clock_time.month, in main()
|
| /trueos/sys/i386/isa/ |
| HD | pmtimer.c | 96 u_int second, minute, hour; in pmtimer_resume() local 124 hour = second / 3600; in pmtimer_resume() 129 hour, minute, second); in pmtimer_resume()
|
| /trueos/sys/kern/ |
| HD | subr_clock.c | 130 ct->hour, ct->min, ct->sec); in print_ct() 149 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || in clock_ct_to_ts() 169 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 + in clock_ct_to_ts() 205 ct->hour = rsec / 3600; in clock_ts_to_ct()
|
| /trueos/usr.sbin/cron/lib/ |
| HD | entry.c | 156 bit_set(e->hour, 0); 165 bit_set(e->hour, 0); 174 bit_set(e->hour, 0); 183 bit_set(e->hour, 0); 191 bit_nset(e->hour, 0, (LAST_HOUR-FIRST_HOUR+1)); 199 bit_nset(e->hour, 0, (LAST_HOUR-FIRST_HOUR+1)); 208 bit_nset(e->hour, 0, (LAST_HOUR-FIRST_HOUR+1)); 238 ch = get_list(e->hour, FIRST_HOUR, LAST_HOUR,
|
| /trueos/usr.sbin/bhyve/ |
| HD | rtc.c | 189 int hour; in rtc_data_handler() local 233 hour = tm.tm_hour; in rtc_data_handler() 235 hour = (tm.tm_hour % 12) + 1; in rtc_data_handler() 237 *eax = rtcout(hour); in rtc_data_handler()
|
| /trueos/usr.sbin/cron/cron/ |
| HD | cron.c | 227 register int second, minute, hour, dom, month, dow; in cron_tick() local 235 hour = tm->tm_hour -FIRST_HOUR; in cron_tick() 241 getpid(), second, minute, hour, dom, month, dow)) in cron_tick() 318 && bit_test(e->hour, otzhour) in cron_tick() 338 && bit_test(e->hour, hour) in cron_tick()
|
| /trueos/crypto/heimdal/lib/roken/ |
| HD | strftime.c | 99 hour_24to12 (int hour) in hour_24to12() argument 101 int ret = hour % 12; in hour_24to12() 113 hour_to_ampm (int hour) in hour_to_ampm() argument 115 return ampm[hour / 12]; in hour_to_ampm()
|
| /trueos/contrib/ntp/clockstuff/ |
| HD | chutest.c | 544 int day, hour, minute, second; in chufilter() local 600 hour = *code++; in chufilter() 601 hour = MULBY10(hour) + *code++; in chufilter() 613 || hour > 23 || minute > 59 in chufilter() 616 day, hour, minute, second); in chufilter() 623 tmp = (u_long)(MULBY24((day-1)) + hour); /* hours */ in chufilter()
|