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

123456

/freebsd-10-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-10-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-10-stable/usr.bin/at/
H A Dparsetime.c91 { "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-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;
176 reg[2] = bin2bcd(ct.hour); /* Force 0..23 format even if using AM/PM */
/freebsd-10-stable/sys/i386/isa/
H A Dpmtimer.c96 u_int second, minute, hour; local
124 hour = second / 3600;
129 hour, minute, second);
/freebsd-10-stable/sys/sys/
H A Dclock.h69 int hour; /* hour (0 - 23) */ member in struct:clocktime
/freebsd-10-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-10-stable/sys/amd64/vmm/io/
H A Dvrtc.c55 uint8_t hour; member in struct:rtcdev
181 int hour; local
207 KASSERT(ct.hour >= 0 && ct.hour <= 23, ("invalid clocktime hour %d",
208 ct.hour));
223 hour = ct.hour;
226 * Convert to the 12-hour format.
228 switch (ct.hour) {
283 int century, error, hour, pm, year; local
[all...]
/freebsd-10-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-10-stable/contrib/wpa/src/utils/
H A Dos_win32.c50 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-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.c183 int year, month, day, hour, minute, second, msecond ; member in struct:jjyunit
421 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_TIME "# Invalid time : rc=%d hour=%d minute=%d second=%d"
422 #define JJY_CLOCKSTATS_MESSAGE_SSCANF_INVALID_DATETIME "# Invalid time : rc=%d year=%d month=%d day=%d hour=%d minute=%d second=%d"
1018 pp->hour = up->hour ;
1026 pp->hour -= 9 ;
1027 if ( pp->hour < 0 ) {
1028 pp->hour += 24 ;
1056 up->hour, up->minute, up->second, up->msecond,
1057 pp->year, pp->day, pp->hour, p
[all...]
H A Drefclock_chronolog.c61 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 Drefclock_gpsvme.c75 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;
H A Drefclock_hopfser.c249 &pp->hour,
261 if ((8 != converted) || (pp->hour < 0) || (pp->hour > 23) ||
293 pp->hour,
/freebsd-10-stable/sys/kern/
H A Dsubr_clock.c130 ct->hour, ct->min, ct->sec);
149 ct->hour > 23 || ct->min > 59 || ct->sec > 59 ||
169 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 +
205 ct->hour = rsec / 3600;
/freebsd-10-stable/tools/tools/netrate/tcpp/
H A Drunit.pl13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
/freebsd-10-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-10-stable/contrib/sendmail/contrib/
H A Dbounce-resender.pl138 $hour = (localtime)[2];
139 $char = chr(ord("A") + $hour);
163 $next = $char = $hour = undef;
/freebsd-10-stable/crypto/heimdal/lib/roken/
H A Dstrftime.c95 * 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-stable/contrib/ntp/libparse/
H A Dclk_sel240x.c147 clock_time->hour = ptime.tm_hour;
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/time/
H A Dt_strptime.c310 ATF_TC(hour); variable
312 ATF_TC_HEAD(hour, tc)
316 "Checks strptime(3) hour conversions [IH]");
319 ATF_TC_BODY(hour, tc)
478 ATF_TP_ADD_TC(tp, hour);

Completed in 139 milliseconds

123456