/netbsd-src/external/bsd/unbound/dist/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;
|
/netbsd-src/sys/arch/ia64/stand/ia64/ski/ |
H A D | time.c | 62 #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 D | time.c | 62 #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 D | ntp_calgps.c | 66 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 D | calyearstart.c | 36 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 D | clocktime.c | 28 #define NEARTIME (182u * SECSPERDAY) 150 return days * SECSPERDAY; in year_to_ntp()
|
/netbsd-src/external/bsd/ntp/dist/include/ |
H A D | ntp_calendar.h | 96 #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 D | ntp_unixtime.h | 47 #define JAN_1970 ((u_int)NTP_TO_UNIX_DAYS * (u_int)SECSPERDAY)
|
/netbsd-src/usr.bin/w/ |
H A D | pr_time.c | 67 if (diff > SECSPERDAY * DAYSPERWEEK) { in pr_attime() 96 days = idle / SECSPERDAY; in pr_idle()
|
/netbsd-src/lib/libc/time/ |
H A D | localtime.c | 1178 ** 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 D | zdump.c | 46 #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 D | zic.c | 2076 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 D | sprint.c | 129 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 D | ntp_filegen.c | 161 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 D | su.c | 120 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 D | progressbar.c | 332 if (remaining > SECSPERDAY) { 335 days = remaining / SECSPERDAY; 336 remaining %= SECSPERDAY;
|
/netbsd-src/external/bsd/ntp/dist/libparse/ |
H A D | gpstolfp.c | 50 …lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert … in gpstolfp()
|
/netbsd-src/usr.bin/vacation/ |
H A D | vacation.c | 197 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 D | test-libntp.c | 28 nowtime = days * SECSPERDAY + secs; in settime()
|
/netbsd-src/include/ |
H A D | tzfile.h | 133 #define SECSPERDAY ((int_fast32_t) SECSPERHOUR * HOURSPERDAY) macro
|
/netbsd-src/usr.bin/login/ |
H A D | login.c | 154 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 D | want.c | 239 if (delta < SECSPERDAY) in wtmp() 246 delta / SECSPERDAY, in wtmp()
|
/netbsd-src/usr.bin/find/ |
H A D | ls.c | 100 #define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY) in printtime()
|
H A D | function.c | 316 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 D | pam_unix.c | 183 (quad_t)(_PASSWORD_WARNDAYS * SECSPERDAY), in pam_sm_acct_mgmt() 184 (quad_t)(_PASSWORD_WARNDAYS * SECSPERDAY)); in pam_sm_acct_mgmt()
|