Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 186) sorted by relevance

12345678

/openbsd/sys/kern/
H A Dclock_subr.c89 int i, year, days; in clock_ymdhms_to_secs() local
97 days = 0; in clock_ymdhms_to_secs()
99 days += days_in_year(i); in clock_ymdhms_to_secs()
101 days++; in clock_ymdhms_to_secs()
106 days += (dt->dt_day - 1); in clock_ymdhms_to_secs()
109 secs = (time_t)((days in clock_ymdhms_to_secs()
125 int i, days; in clock_secs_to_ymdhms() local
130 days = secs / SECDAY; in clock_secs_to_ymdhms()
138 days -= days_in_year(i); in clock_secs_to_ymdhms()
145 days -= days_in_month(i); in clock_secs_to_ymdhms()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Time-Piece/
H A DSeconds.pm123 sub days { subroutine
130 $s->days / 7;
135 $s->days / 30.4368541;
140 $s->days / 30;
145 $s->days / 365.24225;
165 my ($days, $sd) = _counted_objects($s->days, "day");
166 $str .= "$days $sd, ";
167 $s -= ($days * ONE_DAY);
/openbsd/gnu/llvm/libcxx/include/__chrono/
H A Dday.h38 _LIBCPP_HIDE_FROM_ABI constexpr day& operator+=(const days& __dd) noexcept;
39 _LIBCPP_HIDE_FROM_ABI constexpr day& operator-=(const days& __dd) noexcept;
54 day operator+ (const day& __lhs, const days& __rhs) noexcept
58 day operator+ (const days& __lhs, const day& __rhs) noexcept
62 day operator- (const day& __lhs, const days& __rhs) noexcept
66 days operator-(const day& __lhs, const day& __rhs) noexcept
67 { return days(static_cast<int>(static_cast<unsigned>(__lhs)) -
71 day& day::operator+=(const days& __dd) noexcept
75 day& day::operator-=(const days& __dd) noexcept
H A Dweekday.h49 _LIBCPP_HIDE_FROM_ABI constexpr weekday& operator+=(const days& __dd) noexcept;
50 _LIBCPP_HIDE_FROM_ABI constexpr weekday& operator-=(const days& __dd) noexcept;
93 weekday operator+(const weekday& __lhs, const days& __rhs) noexcept
101 weekday operator+(const days& __lhs, const weekday& __rhs) noexcept
105 weekday operator-(const weekday& __lhs, const days& __rhs) noexcept
109 days operator-(const weekday& __lhs, const weekday& __rhs) noexcept
113 return days{__wdu - __wk * 7};
117 weekday& weekday::operator+=(const days& __dd) noexcept
121 weekday& weekday::operator-=(const days& __dd) noexcept
H A Dyear_month_weekday.h70 days{(__wdi_.index() - 1) * 7 + 1}; in ok()
75 _LIBCPP_HIDE_FROM_ABI static constexpr year_month_weekday __from_days(days __d) noexcept;
76 _LIBCPP_HIDE_FROM_ABI constexpr days __to_days() const noexcept;
80 year_month_weekday year_month_weekday::__from_days(days __d) noexcept in __from_days()
90 days year_month_weekday::__to_days() const noexcept in __to_days()
93 return (__sysd + (__wdi_.weekday() - chrono::weekday(__sysd) + days{(__wdi_.index()-1)*7})) in __to_days()
178 _LIBCPP_HIDE_FROM_ABI constexpr days __to_days() const noexcept;
183 days year_month_weekday_last::__to_days() const noexcept in __to_days()
/openbsd/games/pom/
H A Dpom.c77 double days, today, tomorrow; in main() local
96 days = (GMT->tm_yday + 1) + ((GMT->tm_hour + in main()
99 days += isleap(cnt + 1900) ? 366 : 365; in main()
102 days -= isleap(cnt + 1900) ? 366 : 365; in main()
103 today = potm(days); in main()
109 tomorrow = potm(days + 1); in main()
142 potm(double days) in potm() argument
147 N = 360.0 * days / 365.242191; /* sec 46 #3 */ in potm()
154 l = 13.1763966 * days + lzero; /* sec 65 #4 */ in potm()
156 Mm = l - (0.1114041 * days) - Pzero; /* sec 65 #5 */ in potm()
[all …]
/openbsd/usr.bin/w/
H A Dpr_time.c83 int days = idle / SECSPERDAY; in pr_idle() local
87 if (days == 1) in pr_idle()
88 printf(" %dday ", days); in pr_idle()
89 else if (days < 10) in pr_idle()
90 printf(" %ddays ", days); in pr_idle()
92 printf("%ddays ", days); in pr_idle()
H A Dw.c425 int days, hrs, i, mins; in pr_header() local
442 days = uptime / SECSPERDAY; in pr_header()
448 if (days > 0) in pr_header()
449 (void)printf(" %d day%s,", days, in pr_header()
450 days > 1 ? "s" : ""); in pr_header()
457 if (mins > 0 || (days == 0 && hrs == 0)) in pr_header()
/openbsd/usr.bin/calendar/calendars/
H A Dcalendar.christian13 Easter-7 Palm Sunday (7 days before Easter)
14 Easter-3 Maundy Thursday (3 days before Easter)
15 Easter-2 Good Friday (2 days before Easter)
18 Easter+39 Ascension Day (10 days before Pentecost)
21 Easter+56 Trinity Sunday (7 days after Pentecost)
22 Easter+60 Corpus Christi (11 days after Pentecost)
/openbsd/sys/msdosfs/
H A Dmsdosfs_conv.c101 uint32_t days; in unix2dostime() local
133 days = t / (24 * 60 * 60); in unix2dostime()
134 if (days != lastday) { in unix2dostime()
135 lastday = days; in unix2dostime()
138 if (days < inc) in unix2dostime()
140 days -= inc; in unix2dostime()
144 if (days < months[month]) in unix2dostime()
146 days -= months[month]; in unix2dostime()
189 uint32_t days; in dos2unixtime() local
210 days = 0; in dos2unixtime()
[all …]
/openbsd/lib/libcrypto/asn1/
H A Da_time_posix.c139 int64_t days, leftover_seconds, era, day_of_era, year_of_era, in utc_from_posix_time() local
145 days = time / SECS_PER_DAY; in utc_from_posix_time()
148 days--; in utc_from_posix_time()
151 days += 719468; /* Shift to starting epoch of Mar 1 0000. */ in utc_from_posix_time()
154 era = (days > 0 ? days : days - 146096) / 146097; in utc_from_posix_time()
155 day_of_era = days - era * 146097; in utc_from_posix_time()
/openbsd/usr.bin/cal/
H A Dcal.c304 day_array(month, year, days); in monthly()
316 firstday = days[row * 7 + col]; in monthly()
317 ascii_day(p, days[row * 7 + col]); in monthly()
332 int days[12][MAXDAYS]; in j_yearly() local
339 day_array(i + 1, year, days[i]); in j_yearly()
351 dp = &days[month + which_cal][row * 7]; in j_yearly()
367 int days[12][MAXDAYS]; in yearly() local
377 day_array(i + 1, year, days[i]); in yearly()
392 dp = &days[month + which_cal][row * 7]; in yearly()
424 day_array(int month, int year, int *days) in day_array() argument
[all …]
H A DREADME12 calculate the number of days in all prior years (year-1)*365
13 add the number of leap years (days?) since year 1
27 days before with the additional step of subtracting the
28 number of days (11) that were adjusted out of the calendar
/openbsd/usr.bin/dig/lib/dns/
H A Dttl.c71 unsigned secs, mins, hours, days, weeks, x; in dns_ttl_totext() local
76 days = src % 7; src /= 7; in dns_ttl_totext()
85 if (days != 0) { in dns_ttl_totext()
86 RETERR(ttlfmt(days, "day", verbose, (x > 0), target)); in dns_ttl_totext()
98 (weeks == 0 && days == 0 && hours == 0 && mins == 0)) { in dns_ttl_totext()
/openbsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c98 uint32_t days; in unix2dostime() local
131 days = t / (24 * 60 * 60); in unix2dostime()
132 if (days != lastday) { in unix2dostime()
133 lastday = days; in unix2dostime()
136 if (days < inc) in unix2dostime()
138 days -= inc; in unix2dostime()
142 if (days < months[month]) in unix2dostime()
144 days -= months[month]; in unix2dostime()
146 lastddate = ((days + 1) << DD_DAY_SHIFT) in unix2dostime()
/openbsd/regress/lib/libssl/certs/
H A Dmake-certs.sh108 openssl req -new -days 3650 -nodes ${key_args} -sha256 -x509 \
119 openssl req -new -days 3650 -nodes ${key_args} -sha256 \
122 openssl x509 -req -days 3650 -CA "${TMPDIR}/${issuer_file}.crt" \
133 openssl req -new -days 3650 -nodes ${key_args} -sha256 \
136 openssl x509 -req -days 3650 -CA "${TMPDIR}/${issuer_file}.crt" \
147 openssl req -new -days 3650 -nodes ${key_args} -sha256 \
162 openssl req -new -days 3650 -nodes ${key_args} -sha256 \
165 openssl x509 -req -days 3650 -CA "${TMPDIR}/${issuer_file}.crt" \
/openbsd/regress/lib/libcrypto/certs/
H A Dmake-certs.sh90 openssl req -new -days 3650 -nodes -newkey rsa:2048 -sha256 -x509 \
99 openssl req -new -days 3650 -nodes -newkey rsa:2048 -sha256 \
113 openssl req -new -days 3650 -nodes -newkey rsa:2048 -sha256 \
116 openssl x509 -req -days 3650 -CA "${TMPDIR}/${issuer_file}.crt" \
125 openssl req -new -days 3650 -nodes -newkey rsa:2048 -sha256 \
138 openssl req -new -days 3650 -nodes -newkey rsa:2048 -sha256 \
141 openssl x509 -req -days 3650 -CA "${TMPDIR}/${issuer_file}.crt" \
150 openssl req -new -days 3650 -nodes -newkey rsa:2048 -sha256 \
163 openssl x509 -req -days 3650 -CA "${TMPDIR}/${issuer_file}.crt" \
/openbsd/gnu/usr.bin/perl/win32/bin/
H A Dsearch.pl280 local($days) = shift(@ARGV);
281 $! = 2, die qq/$0: inappropriate arg ($days) to $arg\n/ if $days==0;
282 $days *= 3600 * 24;
283 if ($days < 0) {
284 local($time) = $^T + $days;
287 local($time) = $^T - $days;
/openbsd/sbin/unwind/libunbound/sldns/
H A Dparseutil.c75 time_t days = 365 * ((time_t) year - 1970) + leap_days(1970, year); in sldns_mktime_from_utc() local
82 days += mdays[i]; in sldns_mktime_from_utc()
85 ++days; in sldns_mktime_from_utc()
87 days += tm->tm_mday - 1; in sldns_mktime_from_utc()
89 hours = days * 24 + tm->tm_hour; in sldns_mktime_from_utc()
99 sldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result) in sldns_year_and_yday_from_days_since_epoch() argument
104 while (days < 0 || days >= (int64_t) (is_leap_year(year) ? 366 : 365)) { in sldns_year_and_yday_from_days_since_epoch()
105 new_year = year + (int) LDNS_DIV(days, 365); in sldns_year_and_yday_from_days_since_epoch()
106 days -= (new_year - year) * 365; in sldns_year_and_yday_from_days_since_epoch()
107 days -= leap_days(year, new_year); in sldns_year_and_yday_from_days_since_epoch()
[all …]
/openbsd/usr.sbin/unbound/sldns/
H A Dparseutil.c75 time_t days = 365 * ((time_t) year - 1970) + leap_days(1970, year); in sldns_mktime_from_utc() local
82 days += mdays[i]; in sldns_mktime_from_utc()
85 ++days; in sldns_mktime_from_utc()
87 days += tm->tm_mday - 1; in sldns_mktime_from_utc()
89 hours = days * 24 + tm->tm_hour; in sldns_mktime_from_utc()
99 sldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result) in sldns_year_and_yday_from_days_since_epoch() argument
104 while (days < 0 || days >= (int64_t) (is_leap_year(year) ? 366 : 365)) { in sldns_year_and_yday_from_days_since_epoch()
105 new_year = year + (int) LDNS_DIV(days, 365); in sldns_year_and_yday_from_days_since_epoch()
106 days -= (new_year - year) * 365; in sldns_year_and_yday_from_days_since_epoch()
107 days -= leap_days(year, new_year); in sldns_year_and_yday_from_days_since_epoch()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Time-Local/lib/Time/
H A DLocal.pm161 my $days = _daygm( undef, undef, undef, $mday, $month, $year );
163 if ( abs($days) > $MaxDay && !$Options{no_range_check} ) {
164 my $msg = "Day too big - abs($days) > $MaxDay\n";
180 + ( SECS_PER_DAY * $days )
/openbsd/lib/libssl/test/
H A Dtestss50 $x509cmd -CAcreateserial -in $CAreq -days 30 -req -out $CAcert -signkey $CAkey -extfile $CAconf -ex…
92 $x509cmd -CAcreateserial -in $Ureq -days 30 -req -out $Ucert -CA $CAcert -CAkey $CAkey -extfile $Uc…
113 $x509cmd -CAcreateserial -in $P1req -days 30 -req -out $P1cert -CA $Ucert -CAkey $Ukey -extfile $P1…
135 $x509cmd -CAcreateserial -in $P2req -days 30 -req -out $P2cert -CA $P1cert -CAkey $P1key -extfile $…
/openbsd/gnu/usr.bin/cvs/contrib/
H A Dlog.in106 my @days = ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
135 $logfh->print ("Date:\t$days[$wday] $mos[$mon] $mday, $year @ $hour:" . sprintf("%02d", $min) . "\n…
140 …$mailfh->print ("Date:\t$days[$wday] $mos[$mon] $mday, $year @ $hour:" . sprintf("%02d", $min) . "…
/openbsd/regress/lib/libcrypto/CA/
H A DMakefile25 -new -x509 -days 365 -sha256 -extensions v3_ca -out root.cert.pem
42 -extensions v3_intermediate_ca -days 10 -notext -md sha256 \
69 -extensions server_cert -days 5 -notext -md sha256 \
87 -extensions usr_cert -days 5 -notext -md sha256 \
/openbsd/gnu/usr.bin/perl/
H A Dtime64.c155 int days = 0; in S_timegm64() local
161 days += length_of_year[IS_LEAP(year)]; in S_timegm64()
168 days -= length_of_year[IS_LEAP(year)]; in S_timegm64()
173 days += julian_days_by_month[IS_LEAP(date->tm_year)][date->tm_mon]; in S_timegm64()
174 days += date->tm_mday - 1; in S_timegm64()
177 seconds = days; in S_timegm64()

12345678