| /freebsd-12.1/stand/efi/libefi/ |
| H A D | time.c | 60 #define SECSPERDAY (24 * SECSPERHOUR) macro 117 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time() 122 seconds = CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time() 127 CumulativeDays[lyear][month] * SECSPERDAY) { in to_efi_time() 132 time -= CumulativeDays[lyear][month] * SECSPERDAY; in to_efi_time() 134 for (efi_time->Day = 0; time > SECSPERDAY; efi_time->Day++) in to_efi_time() 135 time -= SECSPERDAY; in to_efi_time() 175 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in from_efi_time() 184 SECSPERDAY); in from_efi_time() 192 UTime += (((ETime->Day > 0) ? ETime->Day-1:0) * SECSPERDAY); in from_efi_time()
|
| /freebsd-12.1/contrib/unbound/compat/ |
| H A D | gmtime_r.c | 18 #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-12.1/contrib/ntp/libntp/ |
| H A D | ntp_calgps.c | 64 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 D | calyearstart.c | 34 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 D | clocktime.c | 26 #define NEARTIME (182u * SECSPERDAY) 148 return days * SECSPERDAY; in year_to_ntp()
|
| H A D | ntp_calendar.c | 690 Q = (uint32_t)(sf64 ^ ((sf64 ^ ts->Q_s) / SECSPERDAY)); in ntpcal_daysplit() 691 R = (uint32_t)(ts->Q_s - Q * SECSPERDAY); in ntpcal_daysplit() 703 Q = ~(uint32_t)(~ts->Q_s / SECSPERDAY); in ntpcal_daysplit() 705 Q = (uint32_t)( ts->Q_s / SECSPERDAY); in ntpcal_daysplit() 706 R = ts->D_s.lo - Q * SECSPERDAY; in ntpcal_daysplit() 1239 res.q_s *= SECSPERDAY; in ntpcal_dayjoin() 2095 retv *= SECSPERDAY; in basedate_get_eracenter() 2105 retv *= SECSPERDAY; in basedate_get_erabase()
|
| /freebsd-12.1/contrib/ntp/include/ |
| H A D | ntp_calendar.h | 94 #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 D | ntp_unixtime.h | 45 #define JAN_1970 ((u_int)NTP_TO_UNIX_DAYS * (u_int)SECSPERDAY)
|
| /freebsd-12.1/usr.bin/finger/ |
| H A D | sprint.c | 129 #define SECSPERDAY 86400 in sflag_print() macro 132 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) { in sflag_print() 139 if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2) { in sflag_print()
|
| /freebsd-12.1/usr.bin/calendar/ |
| H A D | pom.c | 193 p1 = onday + (period / SECSPERDAY); in potm_minute() 198 p2 = p1 + (2.0 / SECSPERDAY); in potm_minute() 204 p1 += (period / SECSPERDAY); in potm_minute() 206 p1 -= (period / SECSPERDAY); in potm_minute()
|
| H A D | day.c | 62 time1 = now - SECSPERDAY * before; in settimes() 65 time2 = now + SECSPERDAY * after; in settimes()
|
| H A D | sunpos.c | 240 dial = SECSPERDAY; in fequinoxsolstice() 241 s = SECSPERDAY / 2; in fequinoxsolstice() 279 dial = SECSPERDAY; in fequinoxsolstice() 280 s = SECSPERDAY / 2; in fequinoxsolstice()
|
| H A D | calendar.h | 37 #define SECSPERDAY (24 * 60 * 60) macro
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | ntp_filegen.c | 159 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 D | refclock_dumbclock.c | 281 asserted_time -= SECSPERDAY; /* local clock behind real time */ in dumbclock_receive() 285 asserted_time += SECSPERDAY; /* local clock ahead of real time */ in dumbclock_receive()
|
| H A D | refclock_tsyncpci.c | 825 pSt->seconds += (pDt->doy - 1) * SECSPERDAY; in SecTimeFromDoyTime() 889 doys = (unsigned int)((secs / SECSPERDAY) + 1); in DoyTimeFromSecTime() 890 secs %= SECSPERDAY; in DoyTimeFromSecTime()
|
| H A D | ntp_timer.c | 199 leapf_timer = SECSPERDAY; in init_timer() 442 leapf_timer += SECSPERDAY; in timer()
|
| /freebsd-12.1/contrib/tzcode/stdtime/ |
| H A D | localtime.c | 911 value += SECSPERDAY; 962 value += d * SECSPERDAY; 1103 SECSPERDAY; 1643 tdays = *timep / SECSPERDAY; 1644 rem = *timep - tdays * SECSPERDAY; 1669 seconds = tdays * SECSPERDAY + 0.5; 1670 tdays = seconds / SECSPERDAY; 1671 rem += seconds - tdays * SECSPERDAY; 1679 rem += SECSPERDAY; 1682 while (rem >= SECSPERDAY) { [all …]
|
| H A D | tzfile.h | 139 #define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY) macro
|
| /freebsd-12.1/contrib/tnftp/src/ |
| H A D | progressbar.c | 338 if (remaining > SECSPERDAY) { 341 days = remaining / SECSPERDAY; 342 remaining %= SECSPERDAY;
|
| /freebsd-12.1/contrib/ntp/libparse/ |
| H A D | gpstolfp.c | 48 …lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert … in gpstolfp()
|
| /freebsd-12.1/usr.sbin/fifolog/lib/ |
| H A D | getdate.y | 35 #define SECSPERDAY (24L * 60L * 60L) macro 596 Julian *= SECSPERDAY; in Convert() 630 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7); in RelativeDate() 631 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); in RelativeDate()
|
| /freebsd-12.1/usr.bin/find/ |
| H A D | getdate.y | 62 #define SECSPERDAY (24L * 60L * 60L) macro 598 Julian *= SECSPERDAY; in Convert() 630 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7); in RelativeDate() 631 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); in RelativeDate()
|
| /freebsd-12.1/contrib/tzcode/zic/ |
| H A D | zdump.c | 98 #define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY) macro 99 #define SECSPERNYEAR (SECSPERDAY * DAYSPERNYEAR) 100 #define SECSPERLYEAR (SECSPERNYEAR + SECSPERDAY)
|
| /freebsd-12.1/contrib/sendmail/vacation/ |
| H A D | vacation.c | 77 #define SECSPERDAY (60 * 60 * 24) macro 247 interval = atol(optarg) * SECSPERDAY; 843 next = SECSPERDAY * DAYSPERWEEK; in recent()
|