/freebsd/crypto/krb5/src/tests/ |
H A D | t_kadmin_parsing.py | 16 ('28s', '0 days 00:00:28'), 17 ('7m ', '0 days 00:07:00'), 18 ('6m 9s', '0 days 00:06:09'), 19 ('2h', '0 days 02:00:00'), 20 ('2h-5s', '0 days 01:59:55'), 21 ('2h3m', '0 days 02:03:00'), 22 ('2h3m5s', '0 days 02:03:05'), 23 ('5d ', '5 days 00:00:00'), 24 ('5d-48s', '4 days 23:59:12'), 25 ('5d18m', '5 days 00:18:00'), [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | gmtime_r.c | 50 long days; local 56 days = *timep / SECSPERDAY; 61 --days; 65 ++days; 75 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK); 80 while (days < 0 || days >= (long) year_lengths[yleap = isleap(y)]) { 83 newy = y + days / DAYSPERNYEAR; 84 if (days < 0) 86 days -= (newy - y) * DAYSPERNYEAR + 92 tmp->tm_yday = (int) days; [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_calendar.h | 54 * days-of-week 66 * Days in each month. 30 days hath September... 90 #define DAYSPERWEEK (7) /* days per week */ 91 #define DAYSPERYEAR (365) /* days per year */ 153 * Split a time stamp in seconds into elapsed days and elapsed seconds 167 * Merge a number of days and a number of seconds into seconds, 171 ntpcal_dayjoin(int32_t /* days */, int32_t /* seconds */); 187 * Convert elapsed years in Era into elapsed days in Era. 193 * Convert a number of elapsed month in a year into elapsed days 198 * while 'res.lo' will contain the days since start of the [all …]
|
/freebsd/crypto/openssl/test/certs/ |
H A D | mkcert.sh | 16 if [ -z "$DAYS" ]; then 17 DAYS=36525 115 cert "$cert" "$exts" -signkey "${key}.pem" -set_serial 1 -days "${DAYS}" 157 -set_serial 2 -days "${DAYS}" "$@" 178 -set_serial 2 -days "${DAYS}" 200 -set_serial 2 -days "${DAYS}" 217 -set_serial 2 -days "${DAYS}" 267 -set_serial 2 -days "${DAYS}" "$@" 301 -set_serial 2 -days "${DAYS}" "$@" 330 -set_serial 2 -days "${DAYS}" "$@" [all …]
|
/freebsd/crypto/krb5/src/tests/proxy-certs/ |
H A D | make-certs.sh | 6 DAYS=4000 25 default_days = $DAYS 86 -set_serial 1 -days $DAYS -key privkey.pem -out ca.pem 98 -batch -days $DAYS -notext -out tmp.pem -in proxy.csr 103 -batch -days $DAYS -notext -out tmp.pem -in localhost.csr 108 -batch -days $DAYS -notext -out tmp.pem -in proxy.csr 113 -batch -days $DAYS -notext -out tmp.pem -in localhost.csr
|
/freebsd/lib/libcalendar/ |
H A D | calendar.c | 37 * For each month tabulate the number of days elapsed in a year before the 40 * But we do need a special table for the year 1582, since 10 days are 63 * Compute the Julian date from the number of days elapsed since 70 int r; /* hold the rest of days */ in jdate() 84 * Set r to the days left in the year and compute the month by in jdate() 86 * days. in jdate() 92 /* Compute the days left in the month */ in jdate() 100 * Return the number of days since March 1st of the year zero. 127 * days since March 1st, year zero. The date computed will be Julian if it 135 int r; /* holds the rest of days */ in gdate() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_clock.c | 87 /* Day of week. Days are counted from 1/1/1970, which was a Thursday */ 88 #define day_of_week(days) (((days) + 4) % 7) argument 95 * Optimization: using a precomputed count of days between POSIX_BASE_YEAR and 97 * recent_base_days is the number of days before the start of recent_base_year. 137 int i, year, days; in clock_ct_to_ts() local 167 * Compute days since start of time in clock_ct_to_ts() 172 days = recent_base_days; in clock_ct_to_ts() 175 days = 0; in clock_ct_to_ts() 178 days += days_in_year(i); in clock_ct_to_ts() 182 days += days_in_month(year, i); in clock_ct_to_ts() [all …]
|
/freebsd/crypto/krb5/src/lib/krb5/krb/ |
H A D | t_expire_warn.py | 34 realm.run([kadminl, 'addprinc', '-pw', 'pass', '-pwexpire', '3 days', 'days']) 44 realm.run(['./t_expire_warn', 'days', 'pass', '0', '0'], 45 expected_msg=' days on ') 47 realm.run(['./t_expire_warn', 'days', 'pass', '0', '1'], 48 expected_msg=' days on ') 58 output = realm.run(['./t_expire_warn', 'days', 'pass', '1', '0']) 61 fail('Expected non-zero password expiration not seen for days') 63 output = realm.run(['./t_expire_warn', 'days', 'pass', '1', '1']) 66 fail('Expected non-zero password expiration not seen for days')
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_calgps.c | 68 ++datum->days; in _norm_ntp_datum() 72 --datum->days; in _norm_ntp_datum() 151 * When calculating this directly in days, we have to execute a in _gpsntp_fix_gps_era() 159 uint32_t base, days, sign; in _gpsntp_fix_gps_era() local 165 days = out.days; in _gpsntp_fix_gps_era() 167 sign = (uint32_t)-(days < base); in _gpsntp_fix_gps_era() 168 days = sign ^ (days - base); in _gpsntp_fix_gps_era() 169 days %= clen; in _gpsntp_fix_gps_era() 170 days = base + (sign & clen) + (sign ^ days); in _gpsntp_fix_gps_era() 172 out.days = days; in _gpsntp_fix_gps_era() [all …]
|
H A D | ntp_calendar.c | 367 * and full days before a date: 1970-01-01 would be (1969, 0, 0) in 376 * (day number). This is the number of days elapsed since 0000-12-31 669 * Split a 64bit seconds value into elapsed days in 'res.hi' and 827 * Split a 32bit seconds value into h/m/s and excessive days. This 864 * Given the number of elapsed days in the calendar era, split this 866 * of elapsed days of that year in 'res.lo'. 874 int32_t days, in ntpcal_split_eradays() 890 * We want to execute '(days * 4 + 3) /% 146097' under floor in ntpcal_split_eradays() 892 * calculate 'floor((days + 0.75) / 36524.25)', but we want to in ntpcal_split_eradays() 899 ud64 = ((uint64_t)days << in ntpcal_split_eradays() 875 ntpcal_split_eradays(int32_t days,int * isleapyear) ntpcal_split_eradays() argument 1069 int32_t days; ntpcal_daysec_to_date() local 1092 int32_t days; ntpcal_daysec_to_tm() local 1230 ntpcal_dayjoin(int32_t days,int32_t secs) ntpcal_dayjoin() argument 1588 int32_t days, secs; ntpcal_date_to_time() local 1965 int32_t weeks, days, secs; isocal_date_to_ntp64() local [all...] |
/freebsd/contrib/file/src/ |
H A D | cdf_time.c | 49 * Return the number of days between jan 01 1601 and jan 01 of year. 54 int days = 0; in cdf_getdays() local 58 days += isleap(y) + 365; in cdf_getdays() 60 return days; in cdf_getdays() 67 cdf_getday(int year, int days) in cdf_getday() argument 73 if (days < sub) in cdf_getday() 74 return days; in cdf_getday() 75 days -= sub; in cdf_getday() 77 return days; in cdf_getday() 84 cdf_getmonth(int year, int days) in cdf_getmonth() argument [all …]
|
/freebsd/crypto/openssl/test/smime-certs/ |
H A D | mksmime-certs.sh | 18 -keyout smroot.pem -out smroot.pem -newkey rsa:2048 -days 36501 24 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 29 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 34 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 43 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 47 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 51 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 61 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 65 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ 70 #$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \ [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | check_y2k.c | 110 Days ( int Year ) /* return number of days since year "0" */ in Days() function 118 Return += (Year+3) / 4; /* add in (too many) leap days */ in Days() 168 unsigned long days; in main() local 218 days = 365+1; /* days in year 0 + 1 more day */ in main() 222 Test = Days( year ); in main() 223 if ( days != Test ) in main() 225 fprintf( stdout, "%04d: Days() DAY COUNT ERROR: s/b=%ld was=%ld\n", in main() 226 year, (long)days, (long)Test ); in main() 231 if ( days != Test ) in main() 234 year, (long)days, (long)Test ); in main() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | day.h | 53 _LIBCPP_HIDE_FROM_ABI constexpr day& operator+=(const days& __dd) noexcept; 54 _LIBCPP_HIDE_FROM_ABI constexpr day& operator-=(const days& __dd) noexcept; 67 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator+(const day& __lhs, const days& __rhs) noexcept { 71 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator+(const days& __lhs, const day& __rhs) noexcept { 75 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator-(const day& __lhs, const days& __rhs) noexcept { 79 _LIBCPP_HIDE_FROM_ABI inline constexpr days operator-(const day& __lhs, const day& __rhs) noexcept { 80 return days(static_cast<int>(static_cast<unsigned>(__lhs)) - static_cast<int>(static_cast<unsigned>(__rhs))); 83 _LIBCPP_HIDE_FROM_ABI inline constexpr day& day::operator+=(const days& __dd) noexcept { 88 _LIBCPP_HIDE_FROM_ABI inline constexpr day& day::operator-=(const days& __dd) noexcept {
|
H A D | weekday.h | 64 _LIBCPP_HIDE_FROM_ABI constexpr weekday& operator+=(const days& __dd) noexcept; 65 _LIBCPP_HIDE_FROM_ABI constexpr weekday& operator-=(const days& __dd) noexcept; 101 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator+(const weekday& __lhs, const days& __rhs) n… 107 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator+(const days& __lhs, const weekday& __rhs) n… 111 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator-(const weekday& __lhs, const days& __rhs) n… 115 _LIBCPP_HIDE_FROM_ABI inline constexpr days operator-(const weekday& __lhs, const weekday& __rhs) n… 118 return days{__wdu - __wk * 7}; 121 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday& weekday::operator+=(const days& __dd) noexcept { 126 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday& weekday::operator-=(const days& __dd) noexcept {
|
/freebsd/usr.bin/calendar/ |
H A D | dates.c | 53 struct cal_day *days; member 71 /* 1-based month, 0-based days, cumulative */ 149 pd = pm->days; in createdate() 166 pm->days = pd; in createdate() 192 * - Take the leftover days from m1 in generatedates() 193 * - Take all days from <m1 .. m2> in generatedates() 194 * - Take the first days from m2 in generatedates() 208 * - Take the leftover days from y1-m1 in generatedates() 209 * - Take all days from y1-<m1 .. 12] in generatedates() 210 * - Take all days from <y1 .. y2> in generatedates() [all …]
|
H A D | calendar.c | 66 int f_dayAfter = 0; /* days after current date */ in main() 67 int f_dayBefore = 0; /* days before current date */ in main() 90 case 'A': /* days after current date */ in main() 93 errx(1, "number of days must be positive"); in main() 96 case 'B': /* days before current date */ in main() 99 errx(1, "number of days must be positive"); in main() 239 "usage: calendar [-A days] [-a] [-B days] [-D sun|moon] [-d]", in usage() 241 " [-t dd[.mm[.year]]] [-U utcoffset] [-W days]" in usage()
|
/freebsd/usr.bin/ncal/tests/ |
H A D | regress.sh | 20 # Regular calendar, Month days, No-highlight 22 # Backwards calendar, Month days, No-highlight 24 # Regular calendar, Julian days, No-highlight 26 # Backwards calendar, Julian days, No-highlight 33 # Regular calendar, Month days, No-highlight 36 # Backwards calendar, Month days, No-highlight 38 # Regular calendar, Julian days, No-highlight 41 # Backwards calendar, Julian days, No-highlight
|
/freebsd/crypto/openssl/demos/certs/ |
H A D | mkcerts.sh | 9 -keyout root.pem -out root.pem -newkey rsa:2048 -days 3650 14 $OPENSSL x509 -req -in intreq.pem -CA root.pem -days 3600 \ 21 $OPENSSL x509 -req -in req.pem -CA intca.pem -CAkey intkey.pem -days 3600 \ 28 $OPENSSL x509 -req -in creq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \ 35 $OPENSSL x509 -req -in rreq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \ 42 $OPENSSL x509 -req -in respreq.pem -CA intca.pem -CAkey intkey.pem -days 3600 \ 60 $OPENSSL x509 -req -in dhsreq.pem -CA root.pem -days 3600 \ 70 $OPENSSL x509 -req -in dhcreq.pem -CA root.pem -days 3600 \
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | parse-duration.h | 32 This represents NNN years, NNN months, NNN weeks, NNN days, NNN hours, 54 NOTE! Months are always 30 days and years are always 365 days long. 55 5 years is always 1825 days, not 1826 or 1827 depending on leap year 56 considerations. 3 months is always 90 days. There is no consideration 57 for how many days are in the current, next or previous months. 62 * The meanings are yy years, mm months, ww weeks and dd days.
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | parse_time.3 | 91 seven days 93 30 days 95 365 days 144 1 year = 365 days 145 1 month = 30 days 146 1 week = 7 days 161 unparse_time = 12 months 4 days 23 hours 59 minutes 59 seconds
|
/freebsd/crypto/openssl/demos/certs/apps/ |
H A D | mkxcerts.sh | 8 -keyout tsha1.pem -out tsha1.pem -new -days 3650 -sha1 11 -keyout tsha256.pem -out tsha256.pem -new -days 3650 -sha256 14 -keyout tsha512.pem -out tsha512.pem -new -days 3650 -sha512 24 -days 3650 -sha256 29 -days 3650 -sha384
|
/freebsd/usr.bin/pom/ |
H A D | pom.c | 77 double days, today, tomorrow; in main() local 136 days = (GMT.tm_yday + 1) + ((GMT.tm_hour + in main() 139 days += isleap(1900 + cnt) ? 366 : 365; in main() 140 today = potm(days); in main() 151 tomorrow = potm(days + 1); in main() 175 potm(double days) in potm() argument 180 N = 360 * days / 365.2422; /* sec 42 #3 */ in potm() 187 l = 13.1763966 * days + lzero; /* sec 61 #4 */ in potm() 189 Mm = l - (0.1114041 * days) - Pzero; /* sec 61 #5 */ in potm() 191 Nm = Nzero - (0.0529539 * days); /* sec 61 #6 */ in potm()
|
/freebsd/usr.bin/w/ |
H A D | pr_time.c | 103 /* If idle more than 36 hours, print as a number of days. */ in pr_idle() 105 int days = idle / 86400; in pr_idle() local 106 xo_emit(" {:idle/%dday%s} ", days, days > 1 ? "s" : " " ); in pr_idle() 107 if (days >= 100) in pr_idle() 109 if (days >= 10) in pr_idle() 125 return (0); /* not idle longer than 9 days */ in pr_idle()
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 99 time_t days = t / (3600 * 24); in _der_gmtime() local 113 if (days > (ASN1_MAX_YEAR * 365)) in _der_gmtime() 119 if (days < dayinyear) in _der_gmtime() 122 days -= dayinyear; in _der_gmtime() 128 if (days < daysinmonth) in _der_gmtime() 130 days -= daysinmonth; in _der_gmtime() 133 tm->tm_mday = days + 1; in _der_gmtime()
|