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

1234567

/netbsd-current/external/bsd/ntp/dist/tests/libntp/
H A Dclocktime.c60 const int yday=175, hour=12, minute=50, second=0, tzoff=0; local
65 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff,
86 const int yday=175, hour=12, minute=0, second=0, tzoff=0; local
91 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff,
110 const int yday=175, hour=4, minute=0, second=0, tzoff=8; local
115 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp,
131 const int yday=2, hour=11, minute=0, second=0, tzoff=0; local
136 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, timestamp,
152 const int yday=365, hour=23, minute=0, second=0, tzoff=0; local
157 TEST_ASSERT_TRUE(clocktime(yday, hour, minut
173 const int yday=1, hour=1, minute=0, second=0, tzoff=0; local
190 const int yday=100, hour=12, minute=0, second=0, tzoff=0; local
222 int hour; local
[all...]
H A Dcaljulian.c43 snprintf(buffer, 100, "%u", (u_int)cal.hour);
61 && expected.hour == actual.hour
/netbsd-current/sys/arch/mvme68k/stand/sboot/
H A Dclock.c105 int sec, min, hour, day, mon, year; local
110 hour = cl->cl_hour;
115 return chiptotime(sec, min, hour, day, mon, year);
/netbsd-current/sys/arch/mvme68k/stand/libsa/
H A Dchiptotime.c21 chiptotime(int sec, int min, int hour, int day, int mon, int year) argument
27 hour = bcdtobin(hour);
44 return days * SECS_PER_DAY + hour * SECS_PER_HOUR
H A Dclock.c24 chiptotime(int sec, int min, int hour, int day, int mon, int year) argument
30 hour = bcdtobin(hour);
47 return days * SECS_PER_DAY + hour * SECS_PER_HOUR
/netbsd-current/external/bsd/less/dist/
H A Dmkhelp.pl10 my ($sec,$min,$hour,$mday,$mon,$year) = gmtime();
12 $hour, $min, $year+1900, $mon+1, $mday;
/netbsd-current/sys/arch/mvmeppc/stand/libsa/
H A Dclock.c27 chiptotime(int sec, int min, int hour, int day, int mon, int year) argument
33 hour = bcdtobin(hour);
50 return days * SECS_PER_DAY + hour * SECS_PER_HOUR
/netbsd-current/sys/arch/x68k/stand/libsa/
H A Dclock.c48 int sec, min, hour, day, mon, year; local
58 hour = ((val & 0x00ff0000) >> 16);
65 if (hour > 23 || min > 59 || sec > 59)
76 return (days * SECS_PER_DAY) + (hour * SECS_PER_HOUR)
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dcaltontp.c50 REQUIRE(jt->hour <= 24);
67 ntpcal_etime_to_seconds(jt->hour, jt->minute,
/netbsd-current/sys/arch/mac68k/mac68k/
H A Dpram.c64 long year, month, day, hour, minute, seconds, i, dayperyear; local
69 hour = 0;
105 hour++;
119 monstr[month], day, year, hour, minute, seconds);
/netbsd-current/usr.bin/at/
H A Dparsetime.c93 {"hour", HOURS, false}, /* hours ... */
362 int hour, minute; local
366 hour = atoi(sc_token);
378 minute = hour % 100;
379 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...]
/netbsd-current/sys/arch/hp300/stand/common/
H A Dclock.c99 int year, month, day, hour, min, sec; local
107 hour = mc_read(MC_HOUR);
121 hour = ((bbc_registers[5] & 0x03) * 10) + bbc_registers[4];
132 year, month, day, hour, min, sec);
135 range_test(hour, 0, 23);
150 tmp = ((tmp * 24 + hour) * 60 + min) * 60 + sec;
/netbsd-current/external/bsd/ntp/dist/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;
/netbsd-current/sys/arch/playstation2/include/
H A Dbootinfo.h49 u_int8_t hour; member in struct:bootinfo_rtc
/netbsd-current/external/bsd/ntp/dist/util/
H A Dtg.c34 * year, hh the hour of day and mm the minute of hour. For instance,
151 {COEF, 1}, /* 20 1 hour units */
156 {COEF, 1}, /* 25 10 hour tens */
265 int minute, hour, day, year; local
314 &hour, &minute);
357 hour = tm->tm_hour;
378 year, day, hour, minute, second, tone);
380 year / 10, day, hour, minute, year % 10);
395 0, year, day, hour, minut
[all...]
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/samples/roadwarrior/client/
H A Dracoon.conf29 lifetime time 1 hour;
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/samples/roadwarrior/server/
H A Dracoon.conf37 lifetime time 1 hour;
/netbsd-current/sys/dev/i2c/
H A Dr2025.c114 int hour; local
134 hour = bcdtobin(bcd[R2025_REG_HOUR] & R2025_REG_HOUR_MASK);
136 dt->dt_hour = hour;
138 if (hour == 12) {
140 } else if (hour == 32) {
142 } else if (hour > 13) {
143 dt->dt_hour = (hour - 8);
144 } else { /* (hour < 12) */
145 dt->dt_hour = hour;
/netbsd-current/external/bsd/ntp/dist/ntpd/
H A Drefclock_fg.c281 and doubles min every hour at HH:10:ss for a minute.
286 pp->hour = BP1(6)*10 + BP2(6);
288 pp->hour = BP1(5)*10 + BP2(5);
290 if ((up->y2kwarn > 10) && (pp->hour == 10)) {
296 pp->hour = BP1(5)*10 + BP2(5);
303 if ((pp->hour == 10) && (pp->minute == 10)) {
308 "%d %d %d %d %d", pp->year, pp->day, pp->hour,
316 pp->year, pp->day, pp->hour, pp->minute, pp->second);
/netbsd-current/external/bsd/cron/dist/
H A Dstructs.h28 bitstr_t bit_decl(hour, HOUR_COUNT);
/netbsd-current/sys/arch/landisk/stand/boot/
H A Dgetsecs.c196 uint32_t sec, min, hour, day; local
206 hour = rtc_read(RS5C313_HOUR1);
207 hour += rtc_read(RS5C313_HOUR10) * 10;
219 secs += hour * 60 * 60;
/netbsd-current/external/mpl/dhcp/bind/dist/lib/dns/
H A Dtime.c135 int year, month, day, hour, minute, second; local
158 if (sscanf(source, "%4d%2d%2d%2d%2d%2d", &year, &month, &day, &hour,
176 RANGE(0, 23, hour);
184 value = second + (60 * minute) + (3600 * hour) + ((day - 1) * 86400);
/netbsd-current/external/mpl/bind/dist/lib/dns/
H A Dtime.c135 int year, month, day, hour, minute, second; local
158 if (sscanf(source, "%4d%2d%2d%2d%2d%2d", &year, &month, &day, &hour,
176 RANGE(0, 23, hour);
184 value = second + (60 * minute) + (3600 * hour) + ((day - 1) * 86400);
/netbsd-current/sys/arch/evbmips/sbmips/
H A Drtc.c186 uint8_t hour, year, y2k; local
199 hour = READRTC(sc, X1241REG_HR);
200 ymdhms->dt_hour = bcdtobin(hour & ~X1241REG_HR_MIL);
264 uint8_t hour; local
268 hour = bintobcd(ymdhms->dt_hour);
270 hour |= M41T81_HOUR_CB | M41T81_HOUR_CEB;
275 WRITERTC(sc, M41T81_HOUR, hour);
289 uint8_t hour; local
295 hour = READRTC(sc, M41T81_HOUR & M41T81_HOUR_MASK);
296 ymdhms->dt_hour = bcdtobin(hour
[all...]
/netbsd-current/sys/arch/sbmips/sbmips/
H A Drtc.c186 uint8_t hour, year, y2k; local
199 hour = READRTC(sc, X1241REG_HR);
200 ymdhms->dt_hour = bcdtobin(hour & ~X1241REG_HR_MIL);
264 uint8_t hour; local
268 hour = bintobcd(ymdhms->dt_hour);
270 hour |= M41T81_HOUR_CB | M41T81_HOUR_CEB;
275 WRITERTC(sc, M41T81_HOUR, hour);
289 uint8_t hour; local
295 hour = READRTC(sc, M41T81_HOUR & M41T81_HOUR_MASK);
296 ymdhms->dt_hour = bcdtobin(hour
[all...]

Completed in 250 milliseconds

1234567