| /src/contrib/llvm-project/libcxx/include/__chrono/ |
| H A D | day.h | 27 class day { 32 day() = default; 33 _LIBCPP_HIDE_FROM_ABI explicit inline constexpr day(unsigned __val) noexcept in day() function 35 _LIBCPP_HIDE_FROM_ABI inline constexpr day& operator++() noexcept { 39 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator++(int) noexcept { 40 day __tmp = *this; 44 _LIBCPP_HIDE_FROM_ABI inline constexpr day& operator--() noexcept { 48 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator--(int) noexcept { 49 day __tmp = *this; 53 _LIBCPP_HIDE_FROM_ABI constexpr day& operator+=(const days& __dd) noexcept; [all …]
|
| H A D | year_month_day.h | 42 chrono::day __d_; 47 const chrono::year& __yval, const chrono::month& __mval, const chrono::day& __dval) noexcept in year_month_day() 62 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::day day() const noexcept { return __d_; } in day() function 87 return year_month_day{chrono::year{__yr + (__mth <= 2)}, chrono::month{__mth}, chrono::day{__dy}}; in __from_days() 108 …return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day(… 117 return __lhs.day() <=> __rhs.day(); 120 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day operator/(const year_month& __lhs, const day&… 125 return __lhs / day(__rhs); 129 return __lhs / __rhs.month() / __rhs.day(); 146 return (__lhs.year() / __lhs.month() + __rhs) / __lhs.day(); [all …]
|
| H A D | monthday.h | 32 chrono::day __d_; 36 …_LIBCPP_HIDE_FROM_ABI constexpr month_day(const chrono::month& __mval, const chrono::day& __dval) … in month_day() 39 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::day day() const noexcept { return __d_; } in day() function 61 return __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day(); 68 return __lhs.day() <=> __rhs.day(); 71 _LIBCPP_HIDE_FROM_ABI inline constexpr month_day operator/(const month& __lhs, const day& __rhs) no… 75 _LIBCPP_HIDE_FROM_ABI inline constexpr month_day operator/(const day& __lhs, const month& __rhs) no… 80 return __lhs / day(__rhs); 83 _LIBCPP_HIDE_FROM_ABI inline constexpr month_day operator/(int __lhs, const day& __rhs) noexcept { 87 _LIBCPP_HIDE_FROM_ABI inline constexpr month_day operator/(const day& __lhs, int __rhs) noexcept {
|
| /src/contrib/tzdata/ |
| H A D | leapseconds.awk | 208 quadcentury, century, quadyear, year, month, day) 215 day = epoch_days + int(sstamp / (24 * 60 * 60)) 229 quadcentury = int(day / ss_quadcentury_days) 230 day -= quadcentury * ss_quadcentury_days 231 ss_wday = (day + 3) % 7 232 century = int(day / ss_century_days) 234 day -= century * ss_century_days 235 quadyear = int(day / ss_quadyear_days) 236 day -= quadyear * ss_quadyear_days 237 year = int(day / ss_year_days) [all …]
|
| /src/sys/kern/ |
| H A D | subr_clock.c | 157 if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 || in clock_ct_to_ts() 158 ct->day > days_in_month(year, ct->mon) || in clock_ct_to_ts() 183 days += (ct->day - 1); in clock_ct_to_ts() 213 !validbcd(bct->day) || !validbcd(bct->hour) || in clock_bcd_to_ts() 218 bct->year, bct->mon, bct->day, in clock_bcd_to_ts() 225 ct.day = FROMBCD(bct->day); in clock_bcd_to_ts() 273 ct->day = days + 1; in clock_ts_to_ct() 293 KASSERT(ct->day >= 1 && ct->day <= 31, in clock_ts_to_ct() 294 ("day %d not in 1-31", ct->day)); in clock_ts_to_ct() 324 bct->day = TOBCD(ct.day); in clock_ts_to_bcd() [all …]
|
| H A D | subr_fattime.c | 219 unsigned day; in fattime2timespec() local 229 day = (dd & 0x1f) - 1; in fattime2timespec() 232 day += LYC * ((dd >> 11) & 0x1f); in fattime2timespec() 235 day += daytab[(dd >> 5) & 0x3f]; in fattime2timespec() 238 if (day >= ((2100 - 1980) / 4 * LYC + FEB)) in fattime2timespec() 239 day--; in fattime2timespec() 242 day += T1980; in fattime2timespec() 244 tsp->tv_sec += (time_t) DAY * day; in fattime2timespec()
|
| /src/contrib/ntp/ntpd/ |
| H A D | refclock_hpgps.c | 262 int month, day, lastday; in hpgps_receive() local 416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second, in hpgps_receive() 463 if (month < 1 || month > 12 || day < 1) { in hpgps_receive() 470 if (day > day1tab[month - 1]) { in hpgps_receive() 474 for (i = 0; i < month - 1; i++) day += day1tab[i]; in hpgps_receive() 478 if (day > day2tab[month - 1]) { in hpgps_receive() 482 for (i = 0; i < month - 1; i++) day += day2tab[i]; in hpgps_receive() 505 day--; in hpgps_receive() 506 if (day < 1) { in hpgps_receive() 509 day = 366; in hpgps_receive() [all …]
|
| H A D | ntp_util.c | 591 u_long day; in record_peer_stats() local 601 day = now.l_ui / 86400 + MJD_1900; in record_peer_stats() 604 "%lu %s %s %x %.9f %.9f %.9f %.9f\n", day, in record_peer_stats() 633 u_long day; in record_loop_stats() local 640 day = now.l_ui / 86400 + MJD_1900; in record_loop_stats() 644 day, ulfptoa(&now, 3), offset, freq * 1e6, jitter, in record_loop_stats() 667 u_long day; in record_clock_stats() local 674 day = now.l_ui / 86400 + MJD_1900; in record_clock_stats() 677 fprintf(clockstats.fp, "%lu %s %s %s\n", day, in record_clock_stats() 742 u_long day; in record_raw_stats() local [all …]
|
| H A D | refclock_heath.c | 278 int month, day; in heath_receive() local 304 &pp->minute, &pp->second, &dsec, a, &month, &day, in heath_receive() 332 day = tm_time_p->tm_mday; in heath_receive() 358 if (month < 1 || month > 12 || day < 1) { in heath_receive() 363 if (day > day1tab[month - 1]) { in heath_receive() 368 day += day1tab[i]; in heath_receive() 370 if (day > day2tab[month - 1]) { in heath_receive() 375 day += day2tab[i]; in heath_receive() 377 pp->day = day; in heath_receive()
|
| H A D | refclock_hopfser.c | 214 int day, month; /* ddd conversion */ in hopfserial_receive() local 246 &day, in hopfserial_receive() 258 (day < 1) || (day > 31) || in hopfserial_receive() 268 pp->day = ymd2yd(pp->year,month,day); in hopfserial_receive() 284 day, in hopfserial_receive()
|
| H A D | refclock_chronolog.c | 63 int day; /* day-of-month */ member 219 if (sscanf(pp->a_lastcode, "Y %d/%d/%d", &up->year,&up->month,&up->day)) in chronolog_receive() 247 local.tm_mday = up->day; in chronolog_receive() 261 pp->day = ymd2yd (adjyear, adjmon, gmtp->tm_mday); in chronolog_receive() 276 pp->day = ymd2yd(year+1900,month,day); in chronolog_receive()
|
| H A D | refclock_bancomm.c | 124 unsigned short day; member 443 tptr->day, in vme_poll() 452 pp->day = tptr->day; in vme_poll() 461 pp->day, pp->hour, pp->minute, pp->second, in vme_poll() 546 time_vme->day = (unsigned short)atoi(cbuf); in get_datumtime() 594 time_vme->day = maj.tm_yday+1; in tvme_fill() 610 time_vme->day = stfp->tm.tm_yday+1; in stfp_time2tvme()
|
| /src/contrib/dialog/ |
| H A D | calendar.c | 254 day_in_year(int year, int month, int day) in day_in_year() argument 256 int result = day; in day_in_year() 263 iso_week(int year, int month, int day) in iso_week() argument 273 diy = day_in_year(year, month, day); in iso_week() 277 dow = day_of_week(year, month, day); in iso_week() 314 int day; in getisoweeks() local 317 for (day = 1; day <= dpm; day += MAX_DAYS) in getisoweeks() 318 result[windx++] = iso_week(year, month, day); in getisoweeks() 375 int day = current->tm_mday; in draw_day() local 426 if (mday == day) { in draw_day() [all …]
|
| /src/crypto/openssl/test/ |
| H A D | asn1_time_test.c | 623 int day, sec; in test_table() local 642 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table() 646 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table() 651 if (!TEST_true(ASN1_TIME_diff(&day, &sec, >ime, &atime))) { in test_table() 654 …& TEST_true((day == 0 && sec == 0))) || (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) … in test_table() 702 day = sec = 0; in test_table() 703 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table() 704 …("ASN1_TIME_diff(day=%d, sec=%d, %s) after ASN1_TIME_set_string_gmt() failed", day, sec, td->data); in test_table() 726 day = sec = 0; in test_table() 727 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table() [all …]
|
| H A D | time_offset_test.c | 71 int day, sec; in test_offset() local 78 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset() 82 if (day > 0) in test_offset() 84 else if (day < 0) in test_offset() 94 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
|
| /src/contrib/ntp/util/ |
| H A D | tg.c | 263 int minute, hour, day, year; in main() local 311 sscanf(optarg, "%2d%3d%2d%2d", &year, &day, in main() 356 day = tm->tm_yday + 1; in main() 376 year, day, hour, minute, second, tone); in main() 378 year / 10, day, hour, minute, year % 10); in main() 393 0, year, day, hour, minute, second); in main() 418 day++; in main() 424 if (day >= (year & 0x3 ? 366 : 367)) { in main() 430 day = 1; in main() 436 day, hour, minute, year % 10); in main() [all …]
|
| /src/usr.bin/chpass/ |
| H A D | util.c | 83 int day, month, year; in atot() local 110 day = atoi(t); in atot() 114 if (day < 1 || day > 31 || month < 1 || month > 12) in atot() 125 lt->tm_mday = day; in atot()
|
| /src/usr.sbin/rtadvd/ |
| H A D | timer_subr.c | 65 uint32_t day; in sec2str() local 77 day = hour / 24; in sec2str() 81 if (day > 0) in sec2str() 82 p += sprintf(p, "%" PRIu32 "d", day); in sec2str()
|
| /src/contrib/ntp/scripts/stats/ |
| H A D | README.timecodes | 13 T time of day 14 D day of year or month/day 40 ddd = day of year 61 ddd = day of year 62 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day 101 dd/mm = day, month 106 a day. 119 d = features indicator (@ = month/day display enabled) 132 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day 136 dd/mm/ddd = day of month, month of year, day of year
|
| /src/sys/dev/dialog/da9063/ |
| H A D | da9063_rtc.c | 65 uint8_t sec, min, hour, day, mon, year; in da9063_rtc_read_ct() local 84 error = DA9063_READ(sc->parent, DA9063_COUNT_D, &day); in da9063_rtc_read_ct() 101 ct->day = day & DA9063_COUNT_D_COUNT_DAY_MASK; in da9063_rtc_read_ct() 128 error = DA9063_WRITE(sc->parent, DA9063_COUNT_D, ct->day); in da9063_rtc_write_ct() 171 ct.day != oldct.day || ct.mon != oldct.mon || in da9063_rtc_gettime()
|
| /src/crypto/openssl/crypto/asn1/ |
| H A D | a_utctm.c | 78 int day, sec; in ASN1_UTCTIME_cmp_time_t() local 86 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_UTCTIME_cmp_time_t() 89 if (day > 0 || sec > 0) in ASN1_UTCTIME_cmp_time_t() 91 if (day < 0 || sec < 0) in ASN1_UTCTIME_cmp_time_t()
|
| /src/contrib/ntp/conf/ |
| H A D | malarky.conf | 15 filegen peerstats file peerstats type day enable 16 filegen loopstats file loopstats type day enable 17 filegen clockstats file clockstats type day enable
|
| H A D | beauregard.conf | 14 filegen peerstats file peerstats type day enable 15 filegen loopstats file loopstats type day enable 16 filegen clockstats file clockstats type day enable
|
| /src/usr.sbin/ac/ |
| H A D | ac.c | 409 int day; in ac() local 411 day = -1; in ac() 428 if (day >= 0 && day != ltm->tm_yday) { in ac() 429 day = ltm->tm_yday; in ac() 440 day = ltm->tm_yday; in ac() 483 if (day >= 0 && day != ltm->tm_yday) { in ac()
|
| /src/usr.bin/calendar/ |
| H A D | events.c | 151 event_add(int year, int month, int day, int var, char *txt, char *extra) in event_add() argument 166 e->day = day; in event_add() 211 e->month, e->day); in event_print_all() 214 tm.tm_mday = e->day; in event_print_all()
|