Home
last modified time | relevance | path

Searched refs:day (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dday.h27 class day {
32 day() = default;
40 day __tmp = *this;
49 day __tmp = *this;
59 _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const day& __lhs, const day& __rhs) noexcept…
67 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator+(const day& __lhs, const days& __rhs) noexcept {
71 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator+(const days& __lhs, const day& __rhs) noexcept {
75 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator-(const day& __lhs, const days& __rhs) noexcept {
79 _LIBCPP_HIDE_FROM_ABI inline constexpr days operator-(const day& __lhs, const day& __rhs) noexcept {
83 _LIBCPP_HIDE_FROM_ABI inline constexpr day& day::operator+=(const days& __dd) noexcept {
[all …]
H A Dyear_month_day.h42 chrono::day __d_;
117 return __lhs.day() <=> __rhs.day();
208 _LIBCPP_HIDE_FROM_ABI constexpr chrono::day day() const noexcept;
220 chrono::day(31), in day()
221 chrono::day(28), in day()
222 chrono::day(31), in day()
223 chrono::day(30), in day()
224 chrono::day(31), in day()
225 chrono::day(30), in day()
226 chrono::day(31), in day()
[all …]
H A Dmonthday.h32 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 {
/freebsd/contrib/tzdata/
H A Dleapseconds.awk223 day -= quadcentury * ss_quadcentury_days
224 ss_wday = (day + 3) % 7
225 century = int(day / ss_century_days)
227 day -= century * ss_century_days
228 quadyear = int(day / ss_quadyear_days)
229 day -= quadyear * ss_quadyear_days
230 year = int(day / ss_year_days)
232 day -= year * ss_year_days
234 if (day < ss_mon_days[month])
236 day -= ss_mon_days[month]
[all …]
/freebsd/sys/kern/
H A Dsubr_clock.c183 days += (ct->day - 1); in clock_ct_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()
340 bct->year, bct->mon, bct->day, in clock_print_bcd()
345 bct->year, bct->mon, bct->day, in clock_print_bcd()
358 ct->year, ct->mon, ct->day, in clock_print_ct()
[all …]
H A Dsubr_fattime.c219 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()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_hpgps.c262 int month, day, lastday; in hpgps_receive() local
470 if (day > day1tab[month - 1]) { in hpgps_receive()
478 if (day > day2tab[month - 1]) { in hpgps_receive()
505 day--; in hpgps_receive()
506 if (day < 1) { in hpgps_receive()
509 day = 366; in hpgps_receive()
511 day = 365; in hpgps_receive()
517 day++; in hpgps_receive()
518 if (day > lastday) { in hpgps_receive()
520 day = 1; in hpgps_receive()
[all …]
H A Dntp_util.c591 u_long day; in record_peer_stats() local
601 day = now.l_ui / 86400 + MJD_1900; 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()
667 u_long day; in record_clock_stats() local
742 u_long day; in record_raw_stats() local
760 day, ulfptoa(&now, 3), in record_raw_stats()
803 u_long day; in record_sys_stats() local
840 u_long day; in record_proto_stats() local
874 u_long day; in record_crypto_stats() local
[all …]
H A Drefclock_heath.c278 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 Drefclock_hopfser.c214 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 Drefclock_chronolog.c63 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 Drefclock_bancomm.c124 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()
/freebsd/contrib/dialog/
H A Dcalendar.c256 int result = day; in day_in_year()
314 int day; in getisoweeks() local
317 for (day = 1; day <= dpm; day += MAX_DAYS) in getisoweeks()
426 if (mday == day) { in draw_day()
606 int day; in WeekStart() local
608 for (day = 0; day < MAX_DAYS; ++day) { in WeekStart()
610 result = day; in WeekStart()
676 int day, in dialog_calendar() argument
759 if (day > 0 && day <= days_per_month(current.tm_year + 1900, in dialog_calendar()
761 current.tm_mday = day; in dialog_calendar()
[all …]
/freebsd/crypto/openssl/test/
H A Dasn1_time_test.c116 int day, sec; in test_table() local
135 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table()
139 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table()
144 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &gtime, &atime))) { in test_table()
147 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table()
148 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table()
149 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table()
197 day = sec = 0; in test_table()
198 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
221 day = sec = 0; in test_table()
[all …]
H A Dtime_offset_test.c72 int day, sec; in test_offset() local
79 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset()
83 if (day > 0) in test_offset()
85 else if (day < 0) in test_offset()
95 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
/freebsd/contrib/ntp/util/
H A Dtg.c263 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 …]
/freebsd/usr.bin/chpass/
H A Dutil.c83 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()
/freebsd/usr.sbin/rtadvd/
H A Dtimer_subr.c65 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()
/freebsd/contrib/ntp/scripts/stats/
H A DREADME.timecodes13 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
/freebsd/sys/dev/dialog/da9063/
H A Dda9063_rtc.c65 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()
/freebsd/crypto/openssl/crypto/asn1/
H A Da_utctm.c78 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()
/freebsd/contrib/ntp/conf/
H A Dmalarky.conf15 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 Dbeauregard.conf14 filegen peerstats file peerstats type day enable
15 filegen loopstats file loopstats type day enable
16 filegen clockstats file clockstats type day enable
/freebsd/usr.bin/calendar/
H A Devents.c151 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()
/freebsd/usr.sbin/ac/
H A Dac.c409 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()

12345678910>>...13