Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd-12-stable/contrib/tzdata/
Dleapseconds.awk204 quadcentury, century, quadyear, year, month, day)
211 day = epoch_days + int(sstamp / (24 * 60 * 60))
225 quadcentury = int(day / ss_quadcentury_days)
226 day -= quadcentury * ss_quadcentury_days
227 ss_wday = (day + 3) % 7
228 century = int(day / ss_century_days)
230 day -= century * ss_century_days
231 quadyear = int(day / ss_quadyear_days)
232 day -= quadyear * ss_quadyear_days
233 year = int(day / ss_year_days)
[all …]
/freebsd-12-stable/sys/kern/
Dsubr_clock.c165 if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 || in clock_ct_to_ts()
166 ct->day > days_in_month(year, ct->mon) || in clock_ct_to_ts()
191 days += (ct->day - 1); in clock_ct_to_ts()
221 !validbcd(bct->day) || !validbcd(bct->hour) || in clock_bcd_to_ts()
226 bct->year, bct->mon, bct->day, in clock_bcd_to_ts()
233 ct.day = FROMBCD(bct->day); in clock_bcd_to_ts()
281 ct->day = days + 1; in clock_ts_to_ct()
301 KASSERT(ct->day >= 1 && ct->day <= 31, in clock_ts_to_ct()
302 ("day %d not in 1-31", ct->day)); in clock_ts_to_ct()
332 bct->day = TOBCD(ct.day); in clock_ts_to_bcd()
[all …]
Dsubr_fattime.c224 unsigned day; in fattime2timespec() local
234 day = (dd & 0x1f) - 1; in fattime2timespec()
237 day += LYC * ((dd >> 11) & 0x1f); in fattime2timespec()
240 day += daytab[(dd >> 5) & 0x3f]; in fattime2timespec()
246 if (day >= ((2100 - 1980) / 4 * LYC + FEB)) in fattime2timespec()
247 day--; in fattime2timespec()
250 day += T1980; in fattime2timespec()
252 tsp->tv_sec += DAY * day; in fattime2timespec()
/freebsd-12-stable/contrib/ntp/ntpd/
Dntp_util.c591 u_long day; in record_peer_stats() local
598 day = now.l_ui / 86400 + MJD_1900; in record_peer_stats()
602 "%lu %s %s %x %.9f %.9f %.9f %.9f\n", day, in record_peer_stats()
632 u_long day; in record_loop_stats() local
639 day = now.l_ui / 86400 + MJD_1900; in record_loop_stats()
643 day, ulfptoa(&now, 3), offset, freq * 1e6, jitter, in record_loop_stats()
666 u_long day; in record_clock_stats() local
673 day = now.l_ui / 86400 + MJD_1900; in record_clock_stats()
676 fprintf(clockstats.fp, "%lu %s %s %s\n", day, in record_clock_stats()
741 u_long day; in record_raw_stats() local
[all …]
Drefclock_hpgps.c262 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 …]
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()
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()
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()
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()
Drefclock_neoclock4x.c450 int day; in neoclock4x_receive() local
554 neol_atoi_len(&pp->a_lastcode[NEOCLOCK4X_OFFSET_DAY], &day, 2); in neoclock4x_receive()
580 (day < 1) || (day > 31) || in neoclock4x_receive()
604 calc_utc = neol_mktime(pp->year, month, day, pp->hour, pp->minute, pp->second); in neoclock4x_receive()
609 neol_localtime(calc_utc, &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second); in neoclock4x_receive()
614 pp->day = ymd2yd(pp->year, month, day); in neoclock4x_receive()
621 pp->year, month, day, in neoclock4x_receive()
633 up->utc_day = day; in neoclock4x_receive()
833 int day, in neol_mktime() argument
843 (unsigned long)(year/4 - year/100 + year/400 + 367*mon/12 + day) + in neol_mktime()
[all …]
Drefclock_acts.c722 int day; /* day of the month */ in acts_timecode() local
769 &mjd, &pp->year, &month, &day, &pp->hour, in acts_timecode()
775 pp->day = ymd2yd(pp->year, month, day); in acts_timecode()
793 &mjd, &pp->day, &pp->hour, &pp->minute, in acts_timecode()
815 &pp->second, &pp->year, &month, &day, &pp->hour, in acts_timecode()
828 pp->day = ymd2yd(pp->year, month, day); in acts_timecode()
839 &synchar, &pp->day, &pp->hour, &pp->minute, in acts_timecode()
856 &synchar, &qualchar, &pp->year, &pp->day, in acts_timecode()
Drefclock_msfees.c267 u_short day; /* day of year from last code */ member
654 register int day; in ees_receive() local
818 day = bcdunpack(cp[EESM_DAY]); /* day of month */ in ees_receive()
825 case 12: day += NOV; /*FALLSTHROUGH*/ in ees_receive()
826 case 11: day += OCT; /*FALLSTHROUGH*/ in ees_receive()
827 case 10: day += SEP; /*FALLSTHROUGH*/ in ees_receive()
828 case 9: day += AUG; /*FALLSTHROUGH*/ in ees_receive()
829 case 8: day += JUL; /*FALLSTHROUGH*/ in ees_receive()
830 case 7: day += JUN; /*FALLSTHROUGH*/ in ees_receive()
831 case 6: day += MAY; /*FALLSTHROUGH*/ in ees_receive()
[all …]
/freebsd-12-stable/contrib/ntp/util/
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-12-stable/usr.bin/calendar/calendars/
Dcalendar.christian11 01/05 Last (twelfth) day of Christmastide
13 Easter-47 Shrove Tuesday / Mardi Gras (day before Ash Wednesday)
14 Easter-46 Ash Wednesday (First day of Lent)
33 12/25 Christmastide begins: First day of Christmas
34 12/26 Second day of Christmas (Boxing Day)
/freebsd-12-stable/contrib/ntp/scripts/stats/
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-12-stable/usr.bin/chpass/
Dutil.c91 int day, month, year; in atot() local
118 day = atoi(t); in atot()
122 if (day < 1 || day > 31 || month < 1 || month > 12) in atot()
133 lt->tm_mday = day; in atot()
/freebsd-12-stable/usr.sbin/rtadvd/
Dtimer_subr.c66 uint32_t day; in sec2str() local
78 day = hour / 24; in sec2str()
82 if (day > 0) in sec2str()
83 p += sprintf(p, "%" PRIu32 "d", day); in sec2str()
/freebsd-12-stable/contrib/llvm-project/libcxx/include/
Dchrono331 // 25.8.3, class day // C++20
333 class day;
334 constexpr bool operator==(const day& x, const day& y) noexcept;
335 constexpr bool operator!=(const day& x, const day& y) noexcept;
336 constexpr bool operator< (const day& x, const day& y) noexcept;
337 constexpr bool operator> (const day& x, const day& y) noexcept;
338 constexpr bool operator<=(const day& x, const day& y) noexcept;
339 constexpr bool operator>=(const day& x, const day& y) noexcept;
340 constexpr day operator+(const day& x, const days& y) noexcept;
341 constexpr day operator+(const days& x, const day& y) noexcept;
[all …]
/freebsd-12-stable/crypto/openssl/crypto/asn1/
Da_utctm.c75 int day, sec; in ASN1_UTCTIME_cmp_time_t() local
83 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_UTCTIME_cmp_time_t()
86 if (day > 0 || sec > 0) in ASN1_UTCTIME_cmp_time_t()
88 if (day < 0 || sec < 0) in ASN1_UTCTIME_cmp_time_t()
/freebsd-12-stable/contrib/ntp/conf/
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
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-12-stable/usr.bin/calendar/
Devents.c153 event_add(int year, int month, int day, char *date, int var, char *txt, in event_add() argument
169 e->day = day; in event_add()
180 addtodate(e, year, month, day); in event_add()
211 month, day); in event_print_all()
/freebsd-12-stable/usr.sbin/ac/
Dac.c411 int day, rfound; in ac() local
413 day = -1; in ac()
432 if (day >= 0 && day != ltm->tm_yday) { in ac()
433 day = ltm->tm_yday; in ac()
444 day = ltm->tm_yday; in ac()
487 if (day >= 0 && day != ltm->tm_yday) { in ac()
/freebsd-12-stable/contrib/ntp/parseutil/
Dtestdcf.c57 long day; member
247 clock_time->day = ext_bf(buffer, DCF_D10); in convert_rawdcf()
248 clock_time->day = TIMES10(clock_time->day) + ext_bf(buffer, DCF_D1); in convert_rawdcf()
419 clock_time.day = 0; in main()
460 clock_time.day = 0; in main()
492 … (int)clock_time.hour, (int)clock_time.minute, (int)i, (int)clock_time.day, (int)clock_time.month, in main()
/freebsd-12-stable/sys/dev/iicbus/
Drtc8583.c66 uint8_t msec, sec, min, hour, day, month; member
207 y = tregs.day >> 6; in rtc8583_gettime()
240 bct.day = tregs.day & 0x3f; in rtc8583_gettime()
267 tregs.day = bct.day | (bct.year & 0x03 << 6); in rtc8583_settime()

12345678910>>...13