Searched refs:days (Results 1 - 25 of 62) sorted by relevance

123

/freebsd-11-stable/contrib/unbound/compat/
H A Dgmtime_r.c50 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
[all...]
/freebsd-11-stable/contrib/ntp/libparse/
H A Dgpstolfp.c43 u_int days,
48 lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert to NTP time */
41 gpstolfp( u_int weeks, u_int days, unsigned long seconds, l_fp * lfp ) argument
/freebsd-11-stable/share/examples/uefisign/
H A Duefikeys24 days="3650"
34 openssl req -new -x509 -sha256 -days "${days}" -subj "${subj}" -key "${keyfile}" -out "${certfile}" || die "openssl req failed"
/freebsd-11-stable/crypto/heimdal/lib/asn1/
H A Dtimegm.c99 time_t days = t / (3600 * 24); local
113 if (days > (ASN1_MAX_YEAR * 365))
119 if (days < dayinyear)
122 days -= dayinyear;
128 if (days < daysinmonth)
130 days -= daysinmonth;
133 tm->tm_mday = days + 1;
/freebsd-11-stable/usr.bin/w/
H A Dpr_time.c107 /* If idle more than 36 hours, print as a number of days. */
109 int days = idle / 86400; local
110 xo_emit(" {:idle/%dday%s} ", days, days > 1 ? "s" : " " );
111 if (days >= 100)
113 if (days >= 10)
129 return (0); /* not idle longer than 9 days */
/freebsd-11-stable/contrib/file/src/
H A Dcdf_time.c49 * Return the number of days between jan 01 1601 and jan 01 of year.
54 int days = 0; local
58 days += isleap(y) + 365;
60 return days;
67 cdf_getday(int year, int days) argument
73 if (days < sub)
74 return days;
75 days -= sub;
77 return days;
84 cdf_getmonth(int year, int days) argument
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dntp_calgps.c68 ++datum->days;
72 --datum->days;
151 * When calculating this directly in days, we have to execute a
159 uint32_t base, days, sign; local
165 days = out.days;
167 sign = (uint32_t)-(days < base);
168 days = sign ^ (days - base);
169 days
410 int32_t days, week; local
[all...]
H A Dclocktime.c146 u_int32 days; local
147 days = ntpcal_days_in_years(year-1) - DAY_NTP_STARTS + 1;
148 return days * SECSPERDAY;
/freebsd-11-stable/usr.bin/pom/
H A Dpom.c86 double days, today, tomorrow; local
136 days = (GMT.tm_yday + 1) + ((GMT.tm_hour +
139 days += isleap(1900 + cnt) ? 366 : 365;
140 today = potm(days) + .5;
151 tomorrow = potm(days + 1);
175 potm(double days) argument
180 N = 360 * days / 365.2422; /* sec 42 #3 */
187 l = 13.1763966 * days + lzero; /* sec 61 #4 */
189 Mm = l - (0.1114041 * days) - Pzero; /* sec 61 #5 */
191 Nm = Nzero - (0.0529539 * days); /* se
[all...]
/freebsd-11-stable/sys/kern/
H A Dsubr_clock.c94 #define day_of_week(days) (((days) + 4) % 7)
101 * Optimization: using a precomputed count of days between POSIX_BASE_YEAR and
103 * recent_base_days is the number of days before the start of recent_base_year.
143 int i, year, days; local
173 * Compute days since start of time
178 days = recent_base_days;
181 days = 0;
184 days += days_in_year(i);
188 days
252 int i, year, days; local
[all...]
/freebsd-11-stable/contrib/ldns/
H A Dduration.c65 duration->days = 0;
96 if (d1->days != d2->days) {
97 return (int) (d1->days - d2->days);
152 duration->days = (time_t) atoi(str+1);
235 if (duration->days > 0) {
236 count = count + 1 + digits_in_number(duration->days);
279 if (duration->days > 0) {
280 count = digits_in_number(duration->days);
[all...]
H A Dutil.c165 /* Number of days per month (except for February in leap years). */
197 time_t days = 365 * ((time_t) year - 1970) + leap_days(1970, year); local
204 days += mdays[i];
207 ++days;
209 days += tm->tm_mday - 1;
211 hours = days * 24 + tm->tm_hour;
227 ldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result) argument
232 while (days < 0 || days >= (int64_t) (is_leap_year(year) ? 366 : 365)) {
233 new_year = year + (int) LDNS_DIV(days, 36
[all...]
/freebsd-11-stable/lib/libc/nameser/
H A Dns_ttl.c56 int secs, mins, hours, days, weeks, x; local
62 days = src % 7; src /= 7;
70 if (days) {
71 T(fmt1(days, 'D', &dst, &dstlen));
82 if (secs || !(weeks || days || hours || mins)) {
/freebsd-11-stable/contrib/ldns/ldns/
H A Dduration.h56 time_t days; member in struct:ldns_duration_struct
/freebsd-11-stable/crypto/openssl/crypto/x509/
H A Dx509_r2x.c68 X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) argument
101 if (X509_gmtime_adj(xi->validity->notAfter, (long)60 * 60 * 24 * days) ==
/freebsd-11-stable/usr.bin/procstat/
H A Dprocstat_rusage.c65 /* xxx days hh:mm:ss.uuuuuu */
70 int days, hours, minutes, seconds, used; local
76 days = hours / 24;
79 if (days == 1)
81 else if (days > 0)
82 used += snprintf(buffer, sizeof(buffer), "%u days ", days);
/freebsd-11-stable/usr.sbin/rtsold/
H A Ddump.c140 int days, hours, mins, secs; local
154 days = tsec / 3600 / 24;
159 if (days) {
161 n = snprintf(p, ep - p, "%dd", days);
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-chdlc.c145 u_int sec,min,hrs,days; local
183 days = hrs / 24; hrs -= days * 24;
184 ND_PRINT((ndo, ", link uptime=%ud%uh%um%us",days,hrs,min,sec));
/freebsd-11-stable/contrib/apr/time/unix/
H A Dtime.c141 apr_time_t days; local
153 /* Find number of days since 1st March 1900 (in the Gregorian calendar). */
155 days = year * 365 + year / 4 - year / 100 + (year / 100 + 3) / 4;
156 days += dayoffset[xt->tm_mon] + xt->tm_mday - 1;
157 days -= 25508; /* 1 jan 1970 is 25508 days since 1 mar 1900 */
158 days = ((days * 24 + xt->tm_hour) * 60 + xt->tm_min) * 60 + xt->tm_sec;
160 if (days < 0) {
163 *t = days * APR_USEC_PER_SE
[all...]
/freebsd-11-stable/crypto/openssl/util/
H A Dmkcerts.sh43 $SSLEAY x509 -md5 -days 1461 \
79 $SSLEAY x509 -md5 -days 1461 \
116 $SSLEAY x509 -md5 -days 365 \
153 $SSLEAY x509 -md5 -days 365 \
190 $SSLEAY x509 -md5 -days 365 \
/freebsd-11-stable/usr.bin/calendar/
H A Ddates.c55 struct cal_day *days; member in struct:cal_month
72 /* 1-based month, 0-based days, cumulative */
150 pd = pm->days;
167 pm->days = pd;
193 * - Take the leftover days from m1
194 * - Take all days from <m1 .. m2>
195 * - Take the first days from m2
209 * - Take the leftover days from y1-m1
210 * - Take all days from y1-<m1 .. 12]
211 * - Take all days fro
[all...]
/freebsd-11-stable/bin/date/
H A Dvary.c297 int days; local
299 days = (t->tm_hour + val) / 24;
303 if (!adjday(t, '+', days, 0))
310 int days; local
312 days = val / 24;
315 days++;
319 if (!adjday(t, '-', days, 0))
/freebsd-11-stable/contrib/unbound/sldns/
H A Dparseutil.c43 /* Number of days per month (except for February in leap years). */
75 time_t days = 365 * ((time_t) year - 1970) + leap_days(1970, year); local
82 days += mdays[i];
85 ++days;
87 days += tm->tm_mday - 1;
89 hours = days * 24 + tm->tm_hour;
99 sldns_year_and_yday_from_days_since_epoch(int64_t days, struct tm *result) argument
104 while (days < 0 || days >= (int64_t) (is_leap_year(year) ? 366 : 365)) {
105 new_year = year + (int) LDNS_DIV(days, 36
[all...]
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dcheck_y2k.c110 Days ( int Year ) /* return number of days since year "0" */
118 Return += (Year+3) / 4; /* add in (too many) leap days */
168 unsigned long days; local
218 days = 365+1; /* days in year 0 + 1 more day */
223 if ( days != Test )
226 year, (long)days, (long)Test );
231 if ( days != Test )
234 year, (long)days, (long)Test );
238 days
[all...]
/freebsd-11-stable/contrib/unbound/smallapp/
H A Dunbound-control-setup.sh122 openssl req -key $SVR_BASE.key -config request.cfg -new -x509 -days $DAYS -out $SVR_BASE.pem || error "could not create $SVR_BASE.pem"
139 openssl req -key $CTL_BASE.key -config request.cfg -new | openssl x509 -req -days $DAYS -CA $SVR_BASE"_trust.pem" -CAkey $SVR_BASE.key -CAcreateserial -$HASH -out $CTL_BASE.pem

Completed in 159 milliseconds

123