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

12

/freebsd-11-stable/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-11-stable/contrib/ntp/libparse/
H A Dgpstolfp.c48 lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert to NTP time */
/freebsd-11-stable/stand/efi/libefi/
H A Dtime.c60 #define SECSPERDAY (24 * SECSPERHOUR) macro
117 seconds = CumulativeDays[lyear][month] * SECSPERDAY;
122 seconds = CumulativeDays[lyear][month] * SECSPERDAY;
127 CumulativeDays[lyear][month] * SECSPERDAY) {
132 time -= CumulativeDays[lyear][month] * SECSPERDAY;
134 for (efi_time->Day = 0; time > SECSPERDAY; efi_time->Day++)
135 time -= SECSPERDAY;
175 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
184 SECSPERDAY);
192 UTime += (((ETime->Day > 0) ? ETime->Day-1:0) * SECSPERDAY);
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dcalyearstart.c34 return (u_int32)(ndays * SECSPERDAY);
53 return (u_int32)(ndays * SECSPERDAY);
72 return (u_int32)(ndays * SECSPERDAY);
H A Dclocktime.c26 #define NEARTIME (182u * SECSPERDAY)
148 return days * SECSPERDAY;
H A Dntp_calgps.c64 static const int32_t limit = SECSPERDAY;
82 static const int32_t limit = 7 * SECSPERDAY;
195 static const int32_t shift = SECSPERDAY / 2;
317 ts64 = subv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY));
337 retv.l_ui = nd->days * (uint32_t)SECSPERDAY
469 gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal);
586 pvi64 = addv64u32(&pvi64, (GPSNTP_DSHIFT * SECSPERDAY));
608 ts64 = addv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY));
630 - (uint32_t)SECSPERDAY * GPSNTP_DSHIFT;
H A Dmktime.c86 #define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY) macro
H A Dntp_calendar.c690 Q = (uint32_t)(sf64 ^ ((sf64 ^ ts->Q_s) / SECSPERDAY));
691 R = (uint32_t)(ts->Q_s - Q * SECSPERDAY);
703 Q = ~(uint32_t)(~ts->Q_s / SECSPERDAY);
705 Q = (uint32_t)( ts->Q_s / SECSPERDAY);
706 R = ts->D_s.lo - Q * SECSPERDAY;
1239 res.q_s *= SECSPERDAY;
2095 retv *= SECSPERDAY;
2105 retv *= SECSPERDAY;
/freebsd-11-stable/contrib/tzcode/stdtime/
H A Dtzfile.h139 #define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY) macro
H A Dlocaltime.c906 ** add SECSPERDAY times the day number-1 to the time of
909 value = janfirst + (rulep->r_day - 1) * SECSPERDAY;
911 value += SECSPERDAY;
917 ** Just add SECSPERDAY times the day number to the time of
920 value = janfirst + rulep->r_day * SECSPERDAY;
929 value += mon_lengths[leapyear][i] * SECSPERDAY;
962 value += d * SECSPERDAY;
1103 SECSPERDAY;
1643 tdays = *timep / SECSPERDAY;
1644 rem = *timep - tdays * SECSPERDAY;
[all...]
/freebsd-11-stable/usr.bin/calendar/
H A Dday.c60 time1 = now - SECSPERDAY * before;
63 time2 = now + SECSPERDAY * after;
H A Dpom.c191 p1 = onday + (period / SECSPERDAY);
196 p2 = p1 + (2.0 / SECSPERDAY);
202 p1 += (period / SECSPERDAY);
204 p1 -= (period / SECSPERDAY);
H A Dcalendar.h35 #define SECSPERDAY (24 * 60 * 60) macro
H A Dsunpos.c240 dial = SECSPERDAY;
241 s = SECSPERDAY / 2;
279 dial = SECSPERDAY;
280 s = SECSPERDAY / 2;
/freebsd-11-stable/usr.bin/finger/
H A Dsprint.c127 #define SECSPERDAY 86400 macro
130 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) {
137 if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2) {
/freebsd-11-stable/contrib/ntp/include/
H A Dntp_unixtime.h45 #define JAN_1970 ((u_int)NTP_TO_UNIX_DAYS * (u_int)SECSPERDAY)
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 */
/freebsd-11-stable/contrib/tnftp/src/
H A Dprogressbar.c338 if (remaining > SECSPERDAY) {
341 days = remaining / SECSPERDAY;
342 remaining %= SECSPERDAY;
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntp_filegen.c159 gen->id_hi = (u_int32)(gen->id_lo + SECSPERDAY);
169 gen->id_hi = (u_int32)(gen->id_lo + 7 * SECSPERDAY);
195 gen->id_lo = current_time - (current_time % SECSPERDAY);
196 gen->id_hi = gen->id_lo + SECSPERDAY;
H A Drefclock_dumbclock.c281 asserted_time -= SECSPERDAY; /* local clock behind real time */
285 asserted_time += SECSPERDAY; /* local clock ahead of real time */
H A Drefclock_tsyncpci.c825 pSt->seconds += (pDt->doy - 1) * SECSPERDAY;
889 doys = (unsigned int)((secs / SECSPERDAY) + 1);
890 secs %= SECSPERDAY;
/freebsd-11-stable/usr.bin/find/
H A Dgetdate.y73 #define SECSPERDAY (24L * 60L * 60L)
610 Julian *= SECSPERDAY;
642 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
643 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1);
/freebsd-11-stable/usr.sbin/fifolog/lib/
H A Dgetdate.y35 #define SECSPERDAY (24L * 60L * 60L)
597 Julian *= SECSPERDAY;
631 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
632 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1);
/freebsd-11-stable/contrib/tzcode/zic/
H A Dzdump.c98 #define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY) macro
99 #define SECSPERNYEAR (SECSPERDAY * DAYSPERNYEAR)
100 #define SECSPERLYEAR (SECSPERNYEAR + SECSPERDAY)
/freebsd-11-stable/contrib/sendmail/vacation/
H A Dvacation.c77 #define SECSPERDAY (60 * 60 * 24) macro
247 interval = atol(optarg) * SECSPERDAY;
843 next = SECSPERDAY * DAYSPERWEEK;

Completed in 157 milliseconds

12