/freebsd-10.1-release/contrib/ntp/tests/libntp/ |
H A D | clocktime.c | 58 const int yday=175, hour=12, minute=50, second=0, tzoff=0; local 63 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, 84 const int yday=175, hour=12, minute=0, second=0, tzoff=0; local 89 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, 108 const int yday=175, hour=4, minute=0, second=0, tzoff=8; local 113 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, 129 const int yday=2, hour=11, minute=0, second=0, tzoff=0; local 134 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp, 150 const int yday=365, hour=23, minute=0, second=0, tzoff=0; local 155 TEST_ASSERT_TRUE(clocktime(yday, hour, minut 171 const int yday=1, hour=1, minute=0, second=0, tzoff=0; local 188 const int yday=100, hour=12, minute=0, second=0, tzoff=0; local 220 int hour; local [all...] |
H A D | caljulian.c | 41 snprintf(buffer, 100, "%u", (u_int)cal.hour); 59 && expected.hour == actual.hour
|
H A D | calendar.c | 87 (u_int)cal->hour, (u_int)cal->minute, (u_int)cal->second); 99 (u_int)iso->hour, (u_int)iso->minute, (u_int)iso->second); 113 expected->hour == actual->hour && 138 expected->hour == actual->hour && 411 date.hour = date.minute = date.second = 0; 431 date.hour = date.minute = date.second = 0; 450 date.hour = date.minute = date.second = 0; 470 date.hour [all...] |
/freebsd-10.1-release/usr.sbin/rtadvd/ |
H A D | timer_subr.c | 65 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-10.1-release/contrib/ntp/libntp/ |
H A D | caltontp.c | 48 REQUIRE(jt->hour <= 24); 65 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-10.1-release/usr.bin/at/ |
H A D | parsetime.c | 91 { "hour", HOURS,0 }, /* hours ... */ 363 int hour, minute = 0; local 366 hour = atoi(sc_token); 380 minute = hour%100; 383 hour = hour/100; 389 if (hour > 12) 393 if (hour != 12) /* 12:xx PM is 12:xx, not 24:xx */ 394 hour += 12; 396 if (hour [all...] |
/freebsd-10.1-release/sys/mips/cavium/ |
H A D | octeon_ds1337.c | 82 CT_CHECK(ct->hour < 0 || ct->hour > 23, "hour"); 122 ct.hour = bcd2bin(reg[2] & 0x3f); 125 ct.hour = (ct.hour + 12) % 24; 176 reg[2] = bin2bcd(ct.hour); /* Force 0..23 format even if using AM/PM */
|
/freebsd-10.1-release/sys/i386/isa/ |
H A D | pmtimer.c | 96 u_int second, minute, hour; local 124 hour = second / 3600; 129 hour, minute, second);
|
/freebsd-10.1-release/sys/sys/ |
H A D | clock.h | 69 int hour; /* hour (0 - 23) */ member in struct:clocktime
|
/freebsd-10.1-release/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-10.1-release/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-10.1-release/contrib/wpa/src/utils/ |
H A D | os_win32.c | 50 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument 58 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || 66 tm.tm_hour = hour; 100 tm->hour = tm2->tm_hour;
|
/freebsd-10.1-release/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 549 ** Convert the seven bytes received in our time buffer to day, hour, minute, 559 datum_pts->hour = 10*((datum_pts->retbuf[2] & 0x30)>>4) + 576 printf("day %d, hour %d, minute %d, second %d, msec %d\n", 578 datum_pts->hour, 608 ** pick the one that gives the smallest error (+- one half hour). The time 615 ** a half hour of the Datum time (even with time zone differences). 620 datum_pts->hour, 661 datum_pts->hour, [all...] |
H A D | refclock_jjy.c | 178 int year, month, day, hour, minute, second, msecond ; member in struct:jjyunit 415 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_TIME "# Invalid time : rc=%d hour=%d minute=%d second=%d" 416 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_DATETIME "# Invalid time : rc=%d year=%d month=%d day=%d hour=%d minute=%d second=%d" 1012 pp->hour = up->hour ; 1020 pp->hour -= 9 ; 1021 if ( pp->hour < 0 ) { 1022 pp->hour += 24 ; 1050 up->hour, up->minute, up->second, up->msecond, 1051 pp->year, pp->day, pp->hour, p [all...] |
H A D | refclock_chronolog.c | 61 u_char lasthour; /* last hour (for monitor) */ 178 int hours; /* hour-of-day */ 179 int minutes; /* minutes-past-the-hour */ 262 pp->hour = gmtp->tm_hour; 268 adjyear,adjmon,gmtp->tm_mday,pp->hour,pp->minute, 277 pp->hour = hours; 300 up->lasthour = (u_char)pp->hour;
|
H A D | refclock_gpsvme.c | 75 short last_hour; /* last hour (monitor leap sec) */ 189 pp->hour = BCD2INT2((thi & 0x0000FF00) >> 8); 199 pp->hour, pp->minute, pp->second, pp->nsec, status, thi, 215 if (pp->hour < up->last_hour) { 219 up->last_hour = pp->hour;
|
/freebsd-10.1-release/sys/kern/ |
H A D | subr_clock.c | 130 ct->hour, ct->min, ct->sec); 150 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || 171 secs = ((days * 24 + ct->hour) * 60 + ct->min) * 60 + ct->sec; 207 ct->hour = rsec / 3600;
|
/freebsd-10.1-release/tools/tools/netrate/tcpp/ |
H A D | runit.pl | 13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
/freebsd-10.1-release/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-10.1-release/contrib/sendmail/contrib/ |
H A D | bounce-resender.pl | 138 $hour = (localtime)[2]; 139 $char = chr(ord("A") + $hour); 163 $next = $char = $hour = undef;
|
/freebsd-10.1-release/crypto/heimdal/lib/roken/ |
H A D | strftime.c | 95 * Convert hour in [0, 24] to [12 1 - 11 12 1 - 11 12] 99 hour_24to12 (int hour) argument 101 int ret = hour % 12; 109 * Return AM or PM for `hour' 113 hour_to_ampm (int hour) argument 115 return ampm[hour / 12];
|
/freebsd-10.1-release/contrib/ntp/libparse/ |
H A D | clk_sel240x.c | 147 clock_time->hour = ptime.tm_hour;
|