| /src/sys/arch/mvme68k/stand/libsa/ |
| chiptotime.c | 23 int days, yr; local 37 days = 0; 39 days += days_per_year(yr); 40 days += dayyr[mon - 1] + day - 1; 42 days++; 43 /* now have days since Jan 1, 1970; the rest is easy... */ 44 return days * SECS_PER_DAY + hour * SECS_PER_HOUR
|
| clock.c | 26 int days, yr; local 40 days = 0; 42 days += days_per_year(yr); 43 days += dayyr[mon - 1] + day - 1; 45 days++; 46 /* now have days since Jan 1, 1970; the rest is easy... */ 47 return days * SECS_PER_DAY + hour * SECS_PER_HOUR
|
| /src/external/bsd/ntp/dist/tests/libntp/ |
| test-libntp.c | 25 time_t days = ntpcal_edate_to_eradays(y-1, m-1, d-1) + 1 - DAY_UNIX_STARTS; local 28 nowtime = days * SECSPERDAY + secs;
|
| /src/sys/arch/mvmeppc/stand/libsa/ |
| clock.c | 29 int days, yr; local 43 days = 0; 45 days += days_per_year(yr); 46 days += dayyr[mon - 1] + day - 1; 48 days++; 49 /* now have days since Jan 1, 1970; the rest is easy... */ 50 return days * SECS_PER_DAY + hour * SECS_PER_HOUR
|
| /src/usr.bin/w/ |
| pr_time.c | 89 int days; local 96 days = idle / SECSPERDAY; 98 /* If idle more than 36 hours, print as a number of days. */ 100 printf(" %ddays ", days);
|
| /src/external/gpl2/gettext/dist/gettext-tools/src/ |
| po-time.c | 38 long days = ( local 41 /* + intervening leap days */ 48 return 60l * (60l * (24l * days + (a->tm_hour - b->tm_hour))
|
| /src/sys/arch/x68k/stand/libsa/ |
| clock.c | 49 int days, y; local 68 days = 0; 70 days += days_per_year(y); 71 days += yday[mon - 1] + day - 1; 73 days++; 75 /* now we have days since Jan 1, 1970. the rest is easy... */ 76 return (days * SECS_PER_DAY) + (hour * SECS_PER_HOUR)
|
| /src/sys/dev/ |
| clock_subr.c | 85 uint64_t secs, i, year, days; local 90 * Compute days since start of time 95 days = 0; 97 days++; 102 days += days_per_year(i); 105 days += DAYSTO2001; 109 days += i * DAYS400YEARS; 113 days += i * DAYS100YEARS; 117 days += i * DAYS4YEARS; 121 days += days_per_year(i) 146 time_t days; local [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/asn1/ |
| timegm.c | 101 time_t days = t / (3600 * 24); local 115 if (days > (ASN1_MAX_YEAR * 365)) 121 if (days < dayinyear) 124 days -= dayinyear; 130 if (days < daysinmonth) 132 days -= daysinmonth; 135 tm->tm_mday = (int)(days + 1);
|
| /src/external/bsd/ntp/dist/libntp/ |
| clocktime.c | 148 u_int32 days; local 149 days = ntpcal_days_in_years(year-1) - DAY_NTP_STARTS + 1; 150 return days * SECSPERDAY;
|
| /src/external/bsd/libbind/dist/nameser/ |
| ns_ttl.c | 56 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)) {
|
| /src/external/bsd/nsd/dist/simdzone/src/generic/ |
| time.h | 12 /* number of days per month (except for February in leap years) */ 62 uint64_t days = 365 * (year - 1970) + leap_days(1970, year); local 71 days += days_to_month[mon]; 72 days += (mon > 2) & leap_year; 73 days += mday - 1; 75 const uint64_t hours = days * 24 + hour;
|
| /src/external/bsd/ntp/dist/include/ |
| ntp_calgps.h | 49 uint32_t days; /* since NTP epoch */ member in struct:ntpdatum
|
| /src/external/mpl/bind/dist/lib/dns/ |
| ttl.c | 71 unsigned int secs, mins, hours, days, weeks, x; local 79 days = src % 7; 90 if (days != 0) { 91 RETERR(ttlfmt(days, "day", verbose, x > 0, target)); 102 if (secs != 0 || (weeks == 0 && days == 0 && hours == 0 && mins == 0)) {
|
| time.c | 32 static const int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; variable 48 #define month_secs(m, y) ((days[m] + ((m == 1 && is_leap(y)) ? 1 : 0)) * 86400) 165 RANGE(1, days[month - 1] + ((month == 2 && is_leap(year)) ? 1 : 0), 185 value += days[i] * 86400;
|
| /src/lib/libc/nameser/ |
| ns_ttl.c | 56 int secs, mins, hours, days, weeks, x; local 62 days = (int)(src % 7); src /= 7; 70 if (days) { 71 T(fmt1(days, 'D', &dst, &dstlen)); 82 if (secs || !(weeks || days || hours || mins)) {
|
| /src/usr.bin/quota/ |
| printquota.c | 102 time_t years, months, weeks, days, hours, minutes; local 111 days = (seconds + DAY / 2) / DAY; 124 if (days > 9) { 129 (void)snprintf(buf, len, "%" PRId64 "days", days);
|
| /src/external/bsd/file/dist/src/ |
| cdf_time.c | 55 * Return the number of days between jan 01 1601 and jan 01 of year. 60 int days = 0; local 64 days += isleap(y) + 365; 66 return days; 73 cdf_getday(int year, int days) 79 if (days < sub) 80 return days; 81 days -= sub; 83 return days; 90 cdf_getmonth(int year, int days) [all...] |
| /src/external/bsd/nsd/dist/simdzone/src/westmere/ |
| time.h | 58 // of if days are in the range 32 to 39 112 uint64_t days = 365 * (yr - 1970) + (uint64_t)leap_days((uint32_t)yr); local 114 days += (uint64_t)mdays_cumulative[mo]; 115 days += is_leap_yr & (mo > 1); 117 days += dy; 118 uint64_t time_in_second64 = seconds + days * 60 * 60 * 24;
|
| /src/external/bsd/tcpdump/dist/ |
| print-chdlc.c | 144 u_int sec,min,hrs,days; local 182 days = hrs / 24; hrs -= days * 24; 183 ND_PRINT(", link uptime=%ud%uh%um%us",days,hrs,min,sec);
|
| /src/external/ibm-public/postfix/dist/src/global/ |
| mail_conf_time.c | 45 /* (seconds), m (minutes), h (hours), d (days) or w (weeks). 239 static int days; local 245 "days", "10d", &days, 0, 0, 254 vstream_printf("10 days = %d\n", days);
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/ |
| time.c | 33 static const int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; variable 49 #define month_secs(m, y) ((days[m] + ((m == 1 && is_leap(y)) ? 1 : 0)) * 86400) 166 RANGE(1, days[month - 1] + ((month == 2 && is_leap(year)) ? 1 : 0), 186 value += days[i] * 86400;
|
| ttl.c | 78 unsigned secs, mins, hours, days, weeks, x; local 86 days = src % 7; 97 if (days != 0) { 98 RETERR(ttlfmt(days, "day", verbose, (x > 0), target)); 109 if (secs != 0 || (weeks == 0 && days == 0 && hours == 0 && mins == 0)) {
|
| /src/sys/fs/cd9660/ |
| cd9660_node.c | 248 int crtime, days; local 267 days = 367*(y-1980)-7*(y+(m+9)/12)/4-3*((y+(m-9)/7)/100+1)/4+275*m/9+d-100; 273 days = 367*(y-1960)-7*(y+(m+9)/12)/4-3*((y+(m+9)/12-1)/100+1)/4+275*m/9+d-239; 275 crtime = ((((days * 24) + hour) * 60 + minute) * 60) + second;
|
| /src/usr.bin/ftp/ |
| progressbar.c | 333 int days; local 335 days = remaining / SECSPERDAY; 338 "%d day%s ", days, days == 1 ? "" : "s");
|