| /netbsd-src/usr.bin/at/ |
| H A D | parsetime.c | 362 int hour, minute; in tod() local 366 hour = atoi(sc_token); in tod() 378 minute = hour % 100; in tod() 379 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() 400 } else if (hour > 23) in tod() [all …]
|
| /netbsd-src/external/bsd/ntp/dist/util/ |
| H A D | tg.c | 265 int minute, hour, day, year; in main() local 314 &hour, &minute); in main() 357 hour = tm->tm_hour; in main() 378 year, day, hour, minute, second, tone); in main() 380 year / 10, day, hour, minute, year % 10); in main() 395 0, year, day, hour, minute, second); in main() 416 hour++; in main() 418 if (hour >= 24) { in main() 419 hour = 0; in main() 438 day, hour, minute, year % 10); in main() [all …]
|
| /netbsd-src/sys/dev/i2c/ |
| H A D | r2025.c | 114 int hour; in r2025rtc_gettime_ymdhms() local 134 hour = bcdtobin(bcd[R2025_REG_HOUR] & R2025_REG_HOUR_MASK); in r2025rtc_gettime_ymdhms() 136 dt->dt_hour = hour; in r2025rtc_gettime_ymdhms() 138 if (hour == 12) { in r2025rtc_gettime_ymdhms() 140 } else if (hour == 32) { in r2025rtc_gettime_ymdhms() 142 } else if (hour > 13) { in r2025rtc_gettime_ymdhms() 143 dt->dt_hour = (hour - 8); in r2025rtc_gettime_ymdhms() 145 dt->dt_hour = hour; in r2025rtc_gettime_ymdhms()
|
| /netbsd-src/sys/arch/hp300/stand/common/ |
| H A D | clock.c | 99 int year, month, day, hour, min, sec; in clock_to_gmt() local 107 hour = mc_read(MC_HOUR); in clock_to_gmt() 121 hour = ((bbc_registers[5] & 0x03) * 10) + bbc_registers[4]; in clock_to_gmt() 132 year, month, day, hour, min, sec); in clock_to_gmt() 135 range_test(hour, 0, 23); in clock_to_gmt() 150 tmp = ((tmp * 24 + hour) * 60 + min) * 60 + sec; in clock_to_gmt()
|
| /netbsd-src/sys/arch/mvme68k/stand/libsa/ |
| H A D | chiptotime.c | 21 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument 27 hour = bcdtobin(hour); in chiptotime() 44 return days * SECS_PER_DAY + hour * SECS_PER_HOUR in chiptotime()
|
| H A D | clock.c | 24 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument 30 hour = bcdtobin(hour); in chiptotime() 47 return days * SECS_PER_DAY + hour * SECS_PER_HOUR in chiptotime()
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/xferquota/ns2/ |
| H A D | example.db | 19 3600 ; minimum (1 hour) 30 $TTL 3600 ; 1 hour 39 $TTL 3600 ; 1 hour 49 $TTL 3600 ; 1 hour 63 $TTL 3600 ; 1 hour 113 $TTL 3600 ; 1 hour 123 $TTL 3600 ; 1 hour 142 $TTL 3600 ; 1 hour
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/notify/ns2/ |
| H A D | example4.db | 19 3600 ; minimum (1 hour) 28 $TTL 3600 ; 1 hour 37 $TTL 3600 ; 1 hour 47 $TTL 3600 ; 1 hour 61 $TTL 3600 ; 1 hour 111 $TTL 3600 ; 1 hour 121 $TTL 3600 ; 1 hour 140 $TTL 3600 ; 1 hour
|
| H A D | example3.db | 19 3600 ; minimum (1 hour) 28 $TTL 3600 ; 1 hour 37 $TTL 3600 ; 1 hour 47 $TTL 3600 ; 1 hour 61 $TTL 3600 ; 1 hour 111 $TTL 3600 ; 1 hour 121 $TTL 3600 ; 1 hour 140 $TTL 3600 ; 1 hour
|
| H A D | example1.db | 19 3600 ; minimum (1 hour) 28 $TTL 3600 ; 1 hour 37 $TTL 3600 ; 1 hour 47 $TTL 3600 ; 1 hour 61 $TTL 3600 ; 1 hour 111 $TTL 3600 ; 1 hour 121 $TTL 3600 ; 1 hour 140 $TTL 3600 ; 1 hour
|
| /netbsd-src/sys/arch/sbmips/sbmips/ |
| H A D | rtc.c | 186 uint8_t hour, year, y2k; in xirtc_gettime() local 199 hour = READRTC(sc, X1241REG_HR); in xirtc_gettime() 200 ymdhms->dt_hour = bcdtobin(hour & ~X1241REG_HR_MIL); in xirtc_gettime() 264 uint8_t hour; in strtc_settime() local 268 hour = bintobcd(ymdhms->dt_hour); in strtc_settime() 270 hour |= M41T81_HOUR_CB | M41T81_HOUR_CEB; in strtc_settime() 275 WRITERTC(sc, M41T81_HOUR, hour); in strtc_settime() 289 uint8_t hour; in strtc_gettime() local 295 hour = READRTC(sc, M41T81_HOUR & M41T81_HOUR_MASK); in strtc_gettime() 296 ymdhms->dt_hour = bcdtobin(hour & M41T81_HOUR_MASK); in strtc_gettime() [all …]
|
| /netbsd-src/sys/arch/evbmips/sbmips/ |
| H A D | rtc.c | 186 uint8_t hour, year, y2k; in xirtc_gettime() local 199 hour = READRTC(sc, X1241REG_HR); in xirtc_gettime() 200 ymdhms->dt_hour = bcdtobin(hour & ~X1241REG_HR_MIL); in xirtc_gettime() 264 uint8_t hour; in strtc_settime() local 268 hour = bintobcd(ymdhms->dt_hour); in strtc_settime() 270 hour |= M41T81_HOUR_CB | M41T81_HOUR_CEB; in strtc_settime() 275 WRITERTC(sc, M41T81_HOUR, hour); in strtc_settime() 289 uint8_t hour; in strtc_gettime() local 295 hour = READRTC(sc, M41T81_HOUR & M41T81_HOUR_MASK); in strtc_gettime() 296 ymdhms->dt_hour = bcdtobin(hour & M41T81_HOUR_MASK); in strtc_gettime() [all …]
|
| /netbsd-src/sys/arch/x68k/stand/libsa/ |
| H A D | clock.c | 48 int sec, min, hour, day, mon, year; in getsecs() local 58 hour = ((val & 0x00ff0000) >> 16); in getsecs() 65 if (hour > 23 || min > 59 || sec > 59) in getsecs() 76 return (days * SECS_PER_DAY) + (hour * SECS_PER_HOUR) in getsecs()
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/nsupdate/ns1/ |
| H A D | example1.db | 19 3600 ; minimum (1 hour) 30 $TTL 3600 ; 1 hour 39 $TTL 3600 ; 1 hour 49 $TTL 3600 ; 1 hour 63 $TTL 3600 ; 1 hour 113 $TTL 3600 ; 1 hour 123 $TTL 3600 ; 1 hour 142 $TTL 3600 ; 1 hour
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/tsig/ns1/ |
| H A D | example.db | 19 3600 ; minimum (1 hour) 30 $TTL 3600 ; 1 hour 39 $TTL 3600 ; 1 hour 49 $TTL 3600 ; 1 hour 63 $TTL 3600 ; 1 hour 113 $TTL 3600 ; 1 hour 123 $TTL 3600 ; 1 hour 142 $TTL 3600 ; 1 hour
|
| /netbsd-src/sys/arch/mvmeppc/stand/libsa/ |
| H A D | clock.c | 27 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument 33 hour = bcdtobin(hour); in chiptotime() 50 return days * SECS_PER_DAY + hour * SECS_PER_HOUR in chiptotime()
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/dnssec/ns7/ |
| H A D | split-rrsig.db.in | 14 3600 ; refresh (1 hour) 15 3600 ; retry (1 hour) 16 3600 ; expire (1 hour) 17 3600 ; minimum (1 hour)
|
| /netbsd-src/external/bsd/kyua-cli/dist/utils/ |
| H A D | datetime.cpp | 222 const int day, const int hour, in from_values() argument 229 PRE(hour >= 0 && hour <= 23); in from_values() 250 timedata.tm_hour = hour; in from_values() 331 const int day, const int hour, in set_mock_now() argument 335 mock_now = timestamp::from_values(year, month, day, hour, minute, second, in set_mock_now()
|
| /netbsd-src/sys/arch/mac68k/mac68k/ |
| H A D | pram.c | 64 long year, month, day, hour, minute, seconds, i, dayperyear; in convtime() local 69 hour = 0; in convtime() 105 hour++; in convtime() 119 monstr[month], day, year, hour, minute, seconds); in convtime()
|
| /netbsd-src/external/bsd/ntp/dist/parseutil/ |
| H A D | testdcf.c | 62 long hour; member 247 clock_time->hour = ext_bf(buffer, DCF_H10); in convert_rawdcf() 248 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1); in convert_rawdcf() 419 clock_time.hour = 0; in main() 460 clock_time.hour = 0; in main() 494 … (int)clock_time.hour, (int)clock_time.minute, (int)i, (int)clock_time.day, (int)clock_time.month, in main()
|
| /netbsd-src/sys/arch/arm/sunxi/ |
| H A D | sunxi_rtc.c | 99 uint32_t wk_no, hour, minute, second; member 119 .hour = SUN4I_RTC_HOUR, 133 .hour = SUN6I_RTC_HOUR, 150 .hour = SUN7I_RTC_HOUR, 164 .hour = SUN6I_RTC_HOUR, 181 .hour = SUN6I_RTC_HOUR, 198 .hour = SUN6I_RTC_HOUR, 214 .hour = SUN6I_RTC_HOUR, 232 .hour = SUN6I_RTC_HOUR, 453 dt->dt_hour = __SHIFTOUT(hhmmss, conf->hour); in sunxi_rtc_gettime() [all …]
|
| /netbsd-src/sys/arch/mvme68k/stand/sboot/ |
| H A D | clock.c | 105 int sec, min, hour, day, mon, year; in time() local 110 hour = cl->cl_hour; in time() 115 return chiptotime(sec, min, hour, day, mon, year); in time()
|
| /netbsd-src/sys/arch/powerpc/powerpc/ |
| H A D | rtas.c | 268 int status, year, month, day, hour, minute, second, nanosecond; in rtas_todr_gettime_ymdhms() local 274 &month, &day, &hour, &minute, &second, &nanosecond) < 0) in rtas_todr_gettime_ymdhms() 280 t->dt_hour = hour; in rtas_todr_gettime_ymdhms() 290 int status, year, month, day, hour, minute, second, nanosecond; in rtas_todr_settime_ymdhms() local 298 hour = t->dt_hour; in rtas_todr_settime_ymdhms() 304 day, hour, minute, second, nanosecond, &status) < 0) in rtas_todr_settime_ymdhms()
|
| /netbsd-src/sys/arch/landisk/stand/boot/ |
| H A D | getsecs.c | 196 uint32_t sec, min, hour, day; in getsecs() local 206 hour = rtc_read(RS5C313_HOUR1); in getsecs() 207 hour += rtc_read(RS5C313_HOUR10) * 10; in getsecs() 219 secs += hour * 60 * 60; in getsecs()
|
| /netbsd-src/external/bsd/wpa/dist/src/utils/ |
| H A D | os_win32.c | 62 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument 70 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime() 78 tm.tm_hour = hour; in os_mktime() 112 tm->hour = tm2->tm_hour; in os_gmtime()
|