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

12345

/freebsd-10.0-release/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.0-release/contrib/ntp/libntp/
H A Dcalyearstart.c20 jt.hour = jt.minute = jt.second = 0;
H A Dcaltontp.c39 ntp_days*SECSPERDAY+SECSPERMIN*(MINSPERHR*jt->hour + jt->minute);
H A Dclocktime.c2 * clocktime - compute the NTP date from a day of year, hour, minute
33 int hour,
50 tmp = (long)(MULBY24((yday-1)) + hour + tzoff);
31 clocktime( int yday, int hour, int minute, int second, int tzoff, u_long rec_ui, u_long *yearstart, u_int32 *ts_ui ) argument
H A Dcaljulian.c59 jt->hour = (u_char)((minutes / MINSPERHR) % HRSPERDAY);
138 jt->hour = (u_char) tm->tm_hour;
/freebsd-10.0-release/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.0-release/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.0-release/sys/i386/isa/
H A Dpmtimer.c96 u_int second, minute, hour; local
124 hour = second / 3600;
129 hour, minute, second);
/freebsd-10.0-release/sys/sys/
H A Dclock.h69 int hour; /* hour (0 - 23) */ member in struct:clocktime
/freebsd-10.0-release/contrib/ntp/ntpd/
H A Drefclock_jjy.c172 int year, month, day, hour, minute, second, msecond ; member in struct:jjyunit
518 pp->hour = up->hour ;
526 pp->hour -= 9 ;
527 if ( pp->hour < 0 ) {
528 pp->hour += 24 ;
538 up->year, up->month, up->day, up->hour, up->minute, up->second, up->msecond/100 ) ;
540 pp->year, pp->day, pp->hour, pp->minute, pp->second, (int)(pp->nsec/100000000) ) ;
550 up->year, up->month, up->day, up->hour, up->minute, up->second, up->msecond/100 ) ;
665 rc = sscanf ( pBuf, "%2d:%2d:%2d", &up->hour,
[all...]
H A Drefclock_fg.c289 and doubles min every hour at HH:10:ss for a minute.
294 pp->hour = BP1(6)*10 + BP2(6);
296 pp->hour = BP1(5)*10 + BP2(5);
298 if((up->y2kwarn > 10) && (pp->hour == 10))
305 pp->hour = BP1(5)*10 + BP2(5);
312 if((pp->hour == 10) && (pp->minute == 10))
317 sprintf(pp->a_lastcode, "%d %d %d %d %d", pp->year, pp->day, pp->hour, pp->minute, pp->second);
324 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_wwvb.c31 * The WWVB and GPS clocks should be configured for 24-hour display,
117 u_char lasthour; /* last hour (for monitor) */
279 &syncchar, &pp->day, &pp->hour, &pp->minute,
291 &pp->hour, &pp->minute, &pp->second, &pp->nsec,
303 &syncchar, &pp->year, &month, &day, &pp->hour,
435 if (pp->sloppyclockflag & CLK_FLAG4 && pp->hour <
438 up->lasthour = pp->hour;
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 */
260 pp->hour = gmtp->tm_hour;
266 adjyear,adjmon,gmtp->tm_mday,pp->hour,pp->minute,
275 pp->hour = hours;
298 up->lasthour = pp->hour;
H A Drefclock_gpsvme.c75 short last_hour; /* last hour (monitor leap sec) */
191 pp->hour = BCD2INT2((thi & 0x0000FF00) >> 8);
200 pp->day, pp->hour, pp->minute, pp->second, pp->nsec, status, thi,
216 if (pp->hour < up->last_hour) {
220 up->last_hour = pp->hour;
H A Drefclock_hopfser.c258 &pp->hour,
270 if((pp->hour < 0) || (pp->hour > 23) ||
302 pp->hour,
/freebsd-10.0-release/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 hour, minute, year % 10);
393 0, year, day, hour, minut
[all...]
/freebsd-10.0-release/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.0-release/sys/kern/
H A Dsubr_clock.c129 ct->hour, ct->min, ct->sec);
149 ct->hour > 23 || ct->min > 59 || ct->sec > 59 ||
170 secs = ((days * 24 + ct->hour) * 60 + ct->min) * 60 + ct->sec;
206 ct->hour = rsec / 3600;
/freebsd-10.0-release/tools/tools/netrate/tcpp/
H A Drunit.pl13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
/freebsd-10.0-release/contrib/ntp/parseutil/
H A Dtestdcf.c50 #define DCFB_LEAP 0x0004 /* LEAP warning (1 hour prior to occurrence) */
59 long hour; member in struct:clocktime
105 * 16 A1 - expect zone change (1 hour before)
111 * 19 A2 - expect leap insertion/deletion (1 hour before)
243 clock_time->hour = ext_bf(buffer, DCF_H10);
244 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1);
415 clock_time.hour = 0;
456 clock_time.hour = 0;
490 (int)clock_time.hour, (in
[all...]
/freebsd-10.0-release/contrib/sendmail/contrib/
H A Dbounce-resender.pl138 $hour = (localtime)[2];
139 $char = chr(ord("A") + $hour);
163 $next = $char = $hour = undef;
/freebsd-10.0-release/contrib/ntp/include/
H A Dntp_calendar.h14 u_char hour; /* hour of day, midnight = 0 */ member in struct:calendar
15 u_char minute; /* minute of hour */
42 #define MINSPERHR (60) /* minutes per hour */
/freebsd-10.0-release/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.0-release/contrib/dialog/
H A Dtimebox.c74 * Draw the hour-of-month selection box
142 int hour,
215 if (hour >= 24 || minute >= 60 || second >= 60) {
230 /* compute positions of hour, month and year boxes */
242 hour >= 0 ? hour : current.tm_hour,
346 hour = hr_box.value;
138 dialog_timebox(const char *title, const char *subtitle, int height, int width, int hour, int minute, int second) argument

Completed in 202 milliseconds

12345