Home
last modified time | relevance | path

Searched refs:SECSPERDAY (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/stand/efi/libefi/
H A Dtime.c57 #define SECSPERDAY (24 * SECSPERHOUR) macro
114 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
119 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
124 CumulativeDays[lyear][month] * SECSPERDAY) { in to_efi_time()
129 time -= CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time()
131 for (efi_time->Day = 0; time > SECSPERDAY; efi_time->Day++) in to_efi_time()
132 time -= SECSPERDAY; in to_efi_time()
172 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in from_efi_time()
181 SECSPERDAY); in from_efi_time()
189 UTime += (((ETime->Day > 0) ? ETime->Day-1:0) * SECSPERDAY); in from_efi_time()
/freebsd/contrib/unbound/compat/
H A Dgmtime_r.c18 #define SECSPERDAY (24*60*60) macro
56 days = *timep / SECSPERDAY;
57 rem = *timep % SECSPERDAY;
60 rem += SECSPERDAY;
63 while (rem >= SECSPERDAY) {
64 rem -= SECSPERDAY;
/freebsd/contrib/ntp/libntp/
H A Dntp_calgps.c64 static const int32_t limit = SECSPERDAY; in _norm_ntp_datum()
82 static const int32_t limit = 7 * SECSPERDAY; in _norm_gps_datum()
195 static const int32_t shift = SECSPERDAY / 2; in _gpsntp_from_daytime()
317 ts64 = subv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY)); in gpsntp_from_gpscal_ex()
337 retv.l_ui = nd->days * (uint32_t)SECSPERDAY in ntpfp_from_ntpdatum()
469 gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal); in gpscal_from_calendar_ex()
586 pvi64 = addv64u32(&pvi64, (GPSNTP_DSHIFT * SECSPERDAY)); in gpscal_from_weektime1()
608 ts64 = addv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY)); in gpscal_from_gpsntp()
630 - (uint32_t)SECSPERDAY * GPSNTP_DSHIFT; in ntpfp_from_gpsdatum()
H A Dcalyearstart.c34 return (u_int32)(ndays * SECSPERDAY); in calyearstart()
53 return (u_int32)(ndays * SECSPERDAY); in calmonthstart()
72 return (u_int32)(ndays * SECSPERDAY); in calweekstart()
H A Dclocktime.c26 #define NEARTIME (182u * SECSPERDAY)
148 return days * SECSPERDAY; in year_to_ntp()
H A Dntp_calendar.c689 Q = (uint32_t)(sf64 ^ ((sf64 ^ ts->Q_s) / SECSPERDAY)); in ntpcal_daysplit()
690 R = (uint32_t)(ts->Q_s - Q * SECSPERDAY); in ntpcal_daysplit()
702 Q = ~(uint32_t)(~ts->Q_s / SECSPERDAY); in ntpcal_daysplit()
704 Q = (uint32_t)( ts->Q_s / SECSPERDAY); in ntpcal_daysplit()
705 R = ts->D_s.lo - Q * SECSPERDAY; in ntpcal_daysplit()
1238 res.q_s *= SECSPERDAY; in ntpcal_dayjoin()
2094 retv *= SECSPERDAY; in basedate_get_eracenter()
2104 retv *= SECSPERDAY; in basedate_get_erabase()
/freebsd/contrib/ntp/include/
H A Dntp_calendar.h94 #define SECSPERDAY (SECSPERHR * HRSPERDAY) macro
95 #define SECSPERWEEK (DAYSPERWEEK * SECSPERDAY)
96 #define SECSPERYEAR (365 * SECSPERDAY) /* regular year */
97 #define SECSPERLEAPYEAR (366 * SECSPERDAY) /* leap year */
H A Dntp_unixtime.h45 #define JAN_1970 ((u_int)NTP_TO_UNIX_DAYS * (u_int)SECSPERDAY)
/freebsd/usr.bin/finger/
H A Dsprint.c120 #define SECSPERDAY 86400 in sflag_print() macro
123 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) { in sflag_print()
130 if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2) { in sflag_print()
/freebsd/usr.bin/calendar/
H A Dpom.c179 p1 = onday + (period / SECSPERDAY); in potm_minute()
184 p2 = p1 + (2.0 / SECSPERDAY); in potm_minute()
190 p1 += (period / SECSPERDAY); in potm_minute()
192 p1 -= (period / SECSPERDAY); in potm_minute()
H A Dday.c59 time1 = now - SECSPERDAY * before; in settimes()
62 time2 = now + SECSPERDAY * after; in settimes()
H A Dsunpos.c238 dial = SECSPERDAY; in fequinoxsolstice()
239 s = SECSPERDAY / 2; in fequinoxsolstice()
277 dial = SECSPERDAY; in fequinoxsolstice()
278 s = SECSPERDAY / 2; in fequinoxsolstice()
H A Dcalendar.h35 #define SECSPERDAY (24 * 60 * 60) macro
/freebsd/contrib/tzcode/
H A Dlocaltime.c1019 ** add SECSPERDAY times the day number-1 to the time of in getrule()
1022 value = (rulep->r_day - 1) * SECSPERDAY; in getrule()
1024 value += SECSPERDAY; in getrule()
1030 ** Just add SECSPERDAY times the day number to the time of in getrule()
1033 value = rulep->r_day * SECSPERDAY; in getrule()
1072 value = d * SECSPERDAY; in transtime()
1074 value += mon_lengths[leapyear][i] * SECSPERDAY; in transtime()
1192 = year_lengths[isleap(yearbeg - 1)] * SECSPERDAY; in tzparse()
1205 = year_lengths[isleap(yearbeg)] * SECSPERDAY; in tzparse()
1225 * SECSPERDAY); in tzparse()
[all...]
H A Dzdump.c45 #define SECSPERNYEAR (SECSPERDAY * DAYSPERNYEAR)
46 #define SECSPERLYEAR (SECSPERNYEAR + SECSPERDAY)
638 time_t newt = ((t < absolute_max_time - SECSPERDAY / 2 in main()
639 && t + SECSPERDAY / 2 < cuthitime - 1) in main()
640 ? t + SECSPERDAY / 2 in main()
898 hi = (SECSPERDAY < hi - boundary in showextrema()
899 ? boundary + SECSPERDAY in showextrema()
901 if (SECSPERDAY < boundary - lo) { in showextrema()
902 lo = boundary - SECSPERDAY; in showextrema()
/freebsd/contrib/ntp/ntpd/
H A Dntp_filegen.c159 gen->id_hi = (u_int32)(gen->id_lo + SECSPERDAY); in filegen_open()
169 gen->id_hi = (u_int32)(gen->id_lo + 7 * SECSPERDAY); in filegen_open()
195 gen->id_lo = current_time - (current_time % SECSPERDAY); in filegen_open()
196 gen->id_hi = gen->id_lo + SECSPERDAY; in filegen_open()
H A Drefclock_dumbclock.c275 asserted_time -= SECSPERDAY; /* local clock behind real time */ in dumbclock_receive()
279 asserted_time += SECSPERDAY; /* local clock ahead of real time */ in dumbclock_receive()
H A Drefclock_tsyncpci.c825 pSt->seconds += (pDt->doy - 1) * SECSPERDAY; in SecTimeFromDoyTime()
889 doys = (unsigned int)((secs / SECSPERDAY) + 1); in DoyTimeFromSecTime()
890 secs %= SECSPERDAY; in DoyTimeFromSecTime()
H A Dntp_timer.c199 leapf_timer = SECSPERDAY; in init_timer()
470 leapf_timer += SECSPERDAY;
/freebsd/contrib/tnftp/src/
H A Dprogressbar.c338 if (remaining > SECSPERDAY) {
341 days = remaining / SECSPERDAY;
342 remaining %= SECSPERDAY;
/freebsd/contrib/ntp/libparse/
H A Dgpstolfp.c48 …lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert … in gpstolfp()
H A Ddata_mbg.c287 tgpsp->wn, (long) tgpsp->sec / SECSPERDAY, in mbg_tgps_str()
288 (long) tgpsp->sec % SECSPERDAY, (long) tgpsp->tick); in mbg_tgps_str()
/freebsd/usr.sbin/fifolog/lib/
H A Dgetdate.y36 #define SECSPERDAY (24L * 60L * 60L) macro
597 Julian *= SECSPERDAY; in Convert()
631 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7); in RelativeDate()
632 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); in RelativeDate()
/freebsd/usr.bin/find/
H A Dgetdate.y60 #define SECSPERDAY (24L * 60L * 60L) macro
596 Julian *= SECSPERDAY; in Convert()
628 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7); in RelativeDate()
629 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); in RelativeDate()
/freebsd/contrib/sendmail/vacation/
H A Dvacation.c74 #define SECSPERDAY (60 * 60 * 24) macro
245 interval = atol(optarg) * SECSPERDAY;
916 next = SECSPERDAY * DAYSPERWEEK; in recent()

12