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

123

/freebsd-9.3-release/contrib/ntp/libparse/
H A Dgpstolfp.c43 int days,
53 lfp->l_ui = (uint32_t)(weeks * SECSPERWEEK + days * SECSPERDAY + seconds + GPSORIGIN); /* convert to NTP time */
41 gpstolfp( int weeks, int days, unsigned long seconds, l_fp * lfp ) argument
/freebsd-9.3-release/usr.bin/calendar/calendars/
H A Dcalendar.christian14 Easter-7 Palm Sunday (7 days before Easter)
15 Easter-3 Maundy Thursday (3 days before Easter)
16 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)
/freebsd-9.3-release/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-9.3-release/sys/kern/
H A Dsubr_clock.c94 #define day_of_week(days) (((days) + 4) % 7)
137 int i, year, days; local
158 * Compute days since start of time
161 days = 0;
163 days += days_in_year(i);
167 days += days_in_month(year, i);
168 days += (ct->day - 1);
171 secs = ((days * 24 + ct->hour) * 60 + ct->min) * 60 + ct->sec;
183 int i, year, days; local
[all...]
/freebsd-9.3-release/contrib/ntp/tests/libntp/
H A Dtest-libntp.c23 time_t days = ntpcal_edate_to_eradays(y-1, m-1, d-1) + 1 - DAY_UNIX_STARTS; local
26 nowtime = days * SECSPERDAY + secs;
H A Dcalendar.c217 /* days before month, with a full-year pad at the upper end */
225 /* days in month, with one month wrap-around at both ends */
363 * (since the input is all nominal days of the calendar in that range
502 int32_t days, weeks; local
504 days = ntpcal_weekday_close(
512 weeks = days / 7;
513 days = days % 7;
514 TEST_ASSERT_EQUAL(0, days); /* paranoia check... */
583 int32_t days; local
[all...]
/freebsd-9.3-release/usr.bin/w/
H A Dpr_time.c104 /* If idle more than 36 hours, print as a number of days. */
106 int days = idle / 86400; local
107 (void)printf(" %dday%s ", days, days > 1 ? "s" : " " );
108 if (days >= 100)
110 if (days >= 10)
126 return (0); /* not idle longer than 9 days */
/freebsd-9.3-release/games/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-9.3-release/lib/libc/nameser/
H A Dns_ttl.c54 int secs, mins, hours, days, weeks, x; local
60 days = src % 7; src /= 7;
68 if (days) {
69 T(fmt1(days, 'D', &dst, &dstlen));
80 if (secs || !(weeks || days || hours || mins)) {
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dclocktime.c146 u_int32 days; local
147 days = ntpcal_days_in_years(year-1) - DAY_NTP_STARTS + 1;
148 return days * SECSPERDAY;
H A Dntp_calendar.c431 * and full days before a date: 1970-01-01 would be (1969, 0, 0) in
440 * (day number). This is the number of days elapsed since 0000-12-31
681 * Split a 64bit seconds value into elapsed days in 'res.hi' and
767 * Split a 32bit seconds value into h/m/s and excessive days. This
804 * Given the number of elapsed days in the calendar era, split this
806 * of elapsed days of that year in 'res.lo'.
814 int32_t days,
830 sflag = int32_sflag(days);
831 uday = uint32_saturate(int32_to_uint32_2cpl(days), sflag);
837 /* Split off years in century -- days >
813 ntpcal_split_eradays( int32_t days, int *isleapyear ) argument
984 int32_t days; local
1007 int32_t days; local
1097 ntpcal_dayjoin( int32_t days, int32_t secs ) argument
1453 int32_t days, secs; local
1806 int32_t weeks, days, secs; local
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/x509/
H A Dx509_r2x.c68 X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) argument
99 if (X509_gmtime_adj(xi->validity->notAfter, (long)60 * 60 * 24 * days) ==
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dttl.c82 unsigned secs, mins, hours, days, weeks, x; local
87 days = src % 7; src /= 7;
96 if (days != 0) {
97 RETERR(ttlfmt(days, "day", verbose, ISC_TF(x > 0), target));
109 (weeks == 0 && days == 0 && hours == 0 && mins == 0)) {
H A Dtime.c38 static int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; variable
53 #define month_secs(m,y) ((days[m] + ((m == 1 && is_leap(y)) ? 1 : 0 )) * 86400)
162 RANGE(1, days[month - 1] +
174 value += days[i] * 86400;
/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-chdlc.c149 u_int sec,min,hrs,days; local
188 days = hrs / 24; hrs -= days * 24;
189 printf(", link uptime=%ud%uh%um%us",days,hrs,min,sec);
/freebsd-9.3-release/usr.sbin/rtsold/
H A Ddump.c143 int days, hours, mins, secs; local
157 days = tsec / 3600 / 24;
162 if (days) {
164 n = snprintf(p, ep - p, "%dd", days);
/freebsd-9.3-release/crypto/openssl/demos/
H A Dselfsign.c11 int mkit(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);
71 int mkit(x509p, pkeyp, bits, serial, days)
76 int days;
109 X509_gmtime_adj(X509_get_notAfter(x), (long)60 * 60 * 24 * days);
/freebsd-9.3-release/crypto/openssl/test/
H A Dtestss50 $x509cmd -CAcreateserial -in $CAreq -days 30 -req -out $CAcert -signkey $CAkey -extfile $CAconf -extensions v3_ca >err.ss
92 $x509cmd -CAcreateserial -in $Ureq -days 30 -req -out $Ucert -CA $CAcert -CAkey $CAkey -extfile $Uconf -extensions v3_ee >err.ss
113 $x509cmd -CAcreateserial -in $P1req -days 30 -req -out $P1cert -CA $Ucert -CAkey $Ukey -extfile $P1conf -extensions v3_proxy >err.ss
135 $x509cmd -CAcreateserial -in $P2req -days 30 -req -out $P2cert -CA $P1cert -CAkey $P1key -extfile $P2conf -extensions v3_proxy >err.ss
/freebsd-9.3-release/contrib/cvs/contrib/
H A Dlog.in136 my @days = ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
165 $logfh->print ("Date:\t$days[$wday] $mos[$mon] $mday, $year @ $hour:" . sprintf("%02d", $min) . "\n");
170 $mailfh->print ("Date:\t$days[$wday] $mos[$mon] $mday, $year @ $hour:" . sprintf("%02d", $min) . "\n");
/freebsd-9.3-release/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-9.3-release/usr.bin/calendar/
H A Ddates.c53 struct cal_day *days; member in struct:cal_month
70 /* 1-based month, 0-based days, cumulative */
149 pd = pm->days;
166 pm->days = pd;
192 * - Take the leftover days from m1
193 * - Take all days from <m1 .. m2>
194 * - Take the first days from m2
208 * - Take the leftover days from y1-m1
209 * - Take all days from y1-<m1 .. 12]
210 * - Take all days fro
[all...]
/freebsd-9.3-release/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-9.3-release/crypto/openssl/demos/x509/
H A Dmkcert.c15 int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);
64 int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days) argument
95 X509_gmtime_adj(X509_get_notAfter(x), (long)60 * 60 * 24 * days);
/freebsd-9.3-release/crypto/openssl/demos/ssltest-ecc/
H A DECCcertgen.sh24 # The certificate will expire these many days after the issue date.
65 # Make the certificate valid for 1500 days from the time of signing.
67 $OPENSSL_CMD x509 -req -days $DAYS \
104 # file for this CA, create one. Make the certificate valid for $DAYS days
107 $OPENSSL_CMD x509 -req -days $DAYS \
143 # file for this CA, create one. Make the certificate valid for $DAYS days
146 $OPENSSL_CMD x509 -req -days $DAYS \
H A DRSAcertgen.sh24 # The certificate will expire these many days after the issue date.
54 $OPENSSL_CMD x509 -req -days $DAYS \
80 $OPENSSL_CMD x509 -req -days $DAYS \
105 $OPENSSL_CMD x509 -req -days $DAYS \

Completed in 212 milliseconds

123