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

123

/freebsd-10.1-release/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-10.1-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-10.1-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-10.1-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-10.1-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-10.1-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-10.1-release/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-10.1-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-10.1-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-10.1-release/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...]
/freebsd-10.1-release/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-10.1-release/usr.bin/procstat/
H A Dprocstat_rusage.c63 /* xxx days hh:mm:ss.uuuuuu */
68 int days, hours, minutes, seconds, used; local
74 days = hours / 24;
77 if (days == 1)
79 else if (days > 0)
80 used += snprintf(buffer, sizeof(buffer), "%u days ", days);
/freebsd-10.1-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-10.1-release/contrib/ldns/ldns/
H A Dduration.h56 time_t days; member in struct:ldns_duration_struct
/freebsd-10.1-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-10.1-release/contrib/unbound/ldns/
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-10.1-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-10.1-release/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-10.1-release/contrib/apr/time/unix/
H A Dtime.c141 apr_time_t days; local
150 /* Find number of days since 1st March 1900 (in the Gregorian calendar). */
152 days = year * 365 + year / 4 - year / 100 + (year / 100 + 3) / 4;
153 days += dayoffset[xt->tm_mon] + xt->tm_mday - 1;
154 days -= 25508; /* 1 jan 1970 is 25508 days since 1 mar 1900 */
155 days = ((days * 24 + xt->tm_hour) * 60 + xt->tm_min) * 60 + xt->tm_sec;
157 if (days < 0) {
160 *t = days * APR_USEC_PER_SE
[all...]
/freebsd-10.1-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-10.1-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 */
148 pd = pm->days;
165 pm->days = pd;
191 * - Take the leftover days from m1
192 * - Take all days from <m1 .. m2>
193 * - Take the first days from m2
207 * - Take the leftover days from y1-m1
208 * - Take all days from y1-<m1 .. 12]
209 * - Take all days fro
[all...]
/freebsd-10.1-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-10.1-release/sys/i386/xen/
H A Dclock.c397 unsigned long sec, days; local
427 days = 0;
441 days += daysinmonth[m-1];
443 days ++;
444 days += readrtc(RTC_DAY) - 1;
446 days += DAYSPERYEAR + LEAPYEAR(y);
447 sec = ((( days * 24 +
504 /* We have now the days since 01-01-1970 in tm */

Completed in 167 milliseconds

123