Home
last modified time | relevance | path

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

12

/netbsd-src/external/bsd/unbound/dist/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;
/netbsd-src/sys/arch/ia64/stand/ia64/ski/
H A Dtime.c62 #define SECSPERDAY (24 * SECSPERHOUR) macro
135 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in EfiTimeToUnixTime()
143 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY); in EfiTimeToUnixTime()
150 UTime += (((ETime->Day > 0) ? ETime->Day-1:0) * SECSPERDAY); in EfiTimeToUnixTime()
/netbsd-src/sys/arch/ia64/stand/efi/libefi/
H A Dtime.c62 #define SECSPERDAY (24 * SECSPERHOUR) macro
124 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in EfiTimeToUnixTime()
132 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY); in EfiTimeToUnixTime()
139 UTime += (((ETime->Day > 0) ? ETime->Day-1:0) * SECSPERDAY); in EfiTimeToUnixTime()
/netbsd-src/external/bsd/ntp/dist/libntp/
H A Dntp_calgps.c66 static const int32_t limit = SECSPERDAY; in _norm_ntp_datum()
84 static const int32_t limit = 7 * SECSPERDAY; in _norm_gps_datum()
197 static const int32_t shift = SECSPERDAY / 2; in _gpsntp_from_daytime()
319 ts64 = subv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY)); in gpsntp_from_gpscal_ex()
339 retv.l_ui = nd->days * (uint32_t)SECSPERDAY in ntpfp_from_ntpdatum()
471 gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal); in gpscal_from_calendar_ex()
588 pvi64 = addv64u32(&pvi64, (GPSNTP_DSHIFT * SECSPERDAY)); in gpscal_from_weektime1()
610 ts64 = addv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY)); in gpscal_from_gpsntp()
632 - (uint32_t)SECSPERDAY * GPSNTP_DSHIFT; in ntpfp_from_gpsdatum()
H A Dcalyearstart.c36 return (u_int32)(ndays * SECSPERDAY); in calyearstart()
55 return (u_int32)(ndays * SECSPERDAY); in calmonthstart()
74 return (u_int32)(ndays * SECSPERDAY); in calweekstart()
H A Dclocktime.c28 #define NEARTIME (182u * SECSPERDAY)
150 return days * SECSPERDAY; in year_to_ntp()
/netbsd-src/external/bsd/ntp/dist/include/
H A Dntp_calendar.h96 #define SECSPERDAY (SECSPERHR * HRSPERDAY) macro
97 #define SECSPERWEEK (DAYSPERWEEK * SECSPERDAY)
98 #define SECSPERYEAR (365 * SECSPERDAY) /* regular year */
99 #define SECSPERLEAPYEAR (366 * SECSPERDAY) /* leap year */
H A Dntp_unixtime.h47 #define JAN_1970 ((u_int)NTP_TO_UNIX_DAYS * (u_int)SECSPERDAY)
/netbsd-src/usr.bin/w/
H A Dpr_time.c67 if (diff > SECSPERDAY * DAYSPERWEEK) { in pr_attime()
96 days = idle / SECSPERDAY; in pr_idle()
/netbsd-src/lib/libc/time/
H A Dlocaltime.c1178 ** add SECSPERDAY times the day number-1 to the time of in tzparse()
1181 value = (rulep->r_day - 1) * SECSPERDAY; in tzparse()
1183 value += SECSPERDAY; in tzparse()
1189 ** Just add SECSPERDAY times the day number to the time of in tzparse()
1192 value = rulep->r_day * SECSPERDAY; in tzparse()
1231 value = d * SECSPERDAY; in tzparse()
1233 value += mon_lengths[leapyear][i] * SECSPERDAY; in tzparse()
1353 = year_lengths[isleap(yearbeg - 1)] * SECSPERDAY; in tzparse()
1366 = year_lengths[isleap(yearbeg)] * SECSPERDAY; in tzparse()
1386 * SECSPERDAY); in tzparse()
[all...]
H A Dzdump.c46 #define SECSPERNYEAR (SECSPERDAY * DAYSPERNYEAR)
47 #define SECSPERLYEAR (SECSPERNYEAR + SECSPERDAY)
624 time_t newt = ((t < absolute_max_time - SECSPERDAY / 2
625 && t + SECSPERDAY / 2 < cuthitime - 1)
626 ? t + SECSPERDAY / 2
885 hi = (SECSPERDAY < hi - boundary
886 ? boundary + SECSPERDAY
888 if (SECSPERDAY < boundary - lo) {
889 lo = boundary - SECSPERDAY;
H A Dzic.c2076 if (dayoff < min_time / SECSPERDAY) { in inleap()
2080 if (dayoff > max_time / SECSPERDAY) { in inleap()
2084 t = dayoff * SECSPERDAY; in inleap()
2947 tod += wdayoff * SECSPERDAY; in stringrule()
2957 tod += wdayoff * SECSPERDAY; in rule_cmp()
2978 } else if (SECSPERDAY <= tod) { in stringzone()
3081 stdr.r_tod = SECSPERDAY + dstr.r_save; in stringzone()
3218 max_year = max(max_year, (redundant_time / (SECSPERDAY * DAYSPERNYEAR) in outzone()
3586 if (trans[i] - prevtrans < 28 * SECSPERDAY) { in lowerit()
3894 if (dayoff < min_time / SECSPERDAY) in mkdirs()
[all...]
/netbsd-src/usr.bin/finger/
H A Dsprint.c129 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) in sflag_print()
132 < SECSPERDAY * DAYSPERNYEAR / 2) in sflag_print()
/netbsd-src/external/bsd/ntp/dist/ntpd/
H A Dntp_filegen.c161 gen->id_hi = (u_int32)(gen->id_lo + SECSPERDAY); in filegen_open()
171 gen->id_hi = (u_int32)(gen->id_lo + 7 * SECSPERDAY); in filegen_open()
197 gen->id_lo = current_time - (current_time % SECSPERDAY); in filegen_open()
198 gen->id_hi = gen->id_lo + SECSPERDAY; in filegen_open()
/netbsd-src/usr.bin/su/
H A Dsu.c120 time_t pw_warntime = _PASSWORD_WARNDAYS * SECSPERDAY; in main()
238 _PASSWORD_WARNDAYS * SECSPERDAY, in main()
239 _PASSWORD_WARNDAYS * SECSPERDAY); in main()
427 _PASSWORD_WARNDAYS * SECSPERDAY) in main()
/netbsd-src/usr.bin/ftp/
H A Dprogressbar.c332 if (remaining > SECSPERDAY) {
335 days = remaining / SECSPERDAY;
336 remaining %= SECSPERDAY;
/netbsd-src/external/bsd/ntp/dist/libparse/
H A Dgpstolfp.c50 …lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert … in gpstolfp()
/netbsd-src/usr.bin/vacation/
H A Dvacation.c197 interval *= SECSPERDAY; in main()
200 interval *= DAYSPERWEEK * SECSPERDAY; in main()
543 next = SECSPERDAY * DAYSPERWEEK; in recent()
/netbsd-src/external/bsd/ntp/dist/tests/libntp/
H A Dtest-libntp.c28 nowtime = days * SECSPERDAY + secs; in settime()
/netbsd-src/include/
H A Dtzfile.h133 #define SECSPERDAY ((int_fast32_t) SECSPERHOUR * HOURSPERDAY) macro
/netbsd-src/usr.bin/login/
H A Dlogin.c154 time_t pw_warntime = _PASSWORD_WARNDAYS * SECSPERDAY; in main()
531 _PASSWORD_WARNDAYS * SECSPERDAY, in main()
532 _PASSWORD_WARNDAYS * SECSPERDAY); in main()
/netbsd-src/usr.bin/last/
H A Dwant.c239 if (delta < SECSPERDAY) in wtmp()
246 delta / SECSPERDAY, in wtmp()
/netbsd-src/usr.bin/find/
H A Dls.c100 #define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY) in printtime()
H A Dfunction.c316 SECSPERDAY - 1) / SECSPERDAY, plan->t_data); in f_atime()
429 SECSPERDAY - 1) / SECSPERDAY, plan->t_data); in f_ctime()
1353 COMPARE((now - entry->fts_statp->st_mtime + SECSPERDAY - 1) / in f_mtime()
1354 SECSPERDAY, plan->t_data); in f_mtime()
/netbsd-src/lib/libpam/modules/pam_unix/
H A Dpam_unix.c183 (quad_t)(_PASSWORD_WARNDAYS * SECSPERDAY), in pam_sm_acct_mgmt()
184 (quad_t)(_PASSWORD_WARNDAYS * SECSPERDAY)); in pam_sm_acct_mgmt()

12