/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | ntp_calendar.c | 301 unsigned short hour, minute, second, day, year; local 311 jd->year = 1970; 327 &hour, &minute, &second, monstr, &day, &year)) { 330 jd->year = year; 363 * 1970-01-01/03:04:05 means 'IN the 1970st. year, IN the first month, 463 * + let Y be a calendar year and V a truncated 2-digit year: then 465 * is the closest expansion of the truncated year with respect to 466 * the full year, tha [all...] |
H A D | prettydate.c | 42 * it's the LCM of 7 and 1461, the week and leap year cycles. This is 44 * long as no centennial year (divisible by 100, but not 400) goes in 197 jd.monthday, jd.year, jd.hour,
|
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_wwvb.c | 68 * yy = year (as broadcast) 69 * ddd = day of year 281 * you have a PPS gadget and don't have to have the year, format 345 &syncchar, &qualchar, &pp->year, &pp->day, 363 &syncchar, &pp->year, &month, &day, &pp->hour, 366 pp->day = ymd2yd(pp->year, month, day);
|
H A D | refclock_acts.c | 110 * nnn day of year 733 int month; /* month of the year */ 779 &mjd, &pp->year, &month, &day, &pp->hour, 785 pp->day = ymd2yd(pp->year, month, day); 825 &pp->second, &pp->year, &month, &day, &pp->hour, 838 pp->day = ymd2yd(pp->year, month, day); 866 &synchar, &qualchar, &pp->year, &pp->day,
|
/freebsd-11-stable/contrib/ntp/libparse/ |
H A D | clk_dcf7000.c | 106 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
|
H A D | clk_trimtaip.c | 117 STOI(O_YEAR, &clock_time->year) ||
|
H A D | clk_varitext.c | 100 {8, 2}, {5, 2}, {2, 2}, /* day, month, year */ 152 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
|
H A D | clk_hopf6021.c | 151 STOI(O_YEAR, &clock_time->year) ||
|
/freebsd-11-stable/sys/x86/isa/ |
H A D | atrtc.c | 526 rtcout_locked(RTC_YEAR, bct.year & 0xff); 528 rtcout_locked(RTC_CENTURY, bct.year >> 8); 570 bct.year = rtcin_locked(RTC_YEAR); 572 bct.year |= rtcin_locked(RTC_CENTURY) << 8;
|
/freebsd-11-stable/contrib/tzcode/zic/ |
H A D | zic.c | 159 static int yearistype(int year, const char * type); 1109 int year, month, day; local 1119 if (sscanf(cp, scheck(cp, "%d"), &year) != 1) { 1123 error(_("invalid leaping year")); 1126 if (!leapseen || leapmaxyear < year) 1127 leapmaxyear = year; 1128 if (!leapseen || leapminyear > year) 1129 leapminyear = year; 1132 while (j != year) { 1133 if (year > 1983 register int year; local [all...] |
/freebsd-11-stable/sys/arm/at91/ |
H A D | at91_rtc.c | 286 ct.year = RTC_CALR_CEN(calr) * 100 + RTC_CALR_YEAR(calr); 328 WR4(sc, RTC_CALR, RTC_CALR_MK(ct.year, ct.mon, ct.day, ct.dow+1));
|
/freebsd-11-stable/usr.bin/touch/ |
H A D | touch.c | 282 stime_arg2(const char *arg, int year, struct timespec *tvp) argument 296 if (year) {
|
/freebsd-11-stable/sys/dev/iicbus/ |
H A D | s35390a.c | 318 bct.year = bcd[S390_RT1_YEAR]; 343 bcd[S390_RT1_YEAR] = bct.year & 0xff;
|
/freebsd-11-stable/contrib/ntp/include/ |
H A D | ntp_calendar.h | 13 uint16_t year; /* year (A.D.) */ member in struct:calendar 14 uint16_t yearday; /* day of year, 1 = January 1 */ 27 uint16_t year; /* year (A.D.) */ member in struct:isodate 28 uint8_t week; /* 1..53, week in year */ 83 * We deal in a 4 year cycle starting at March 1, 1900. We assume 91 #define DAYSPERYEAR (365) /* days per year */ 96 #define SECSPERYEAR (365 * SECSPERDAY) /* regular year */ 97 #define SECSPERLEAPYEAR (366 * SECSPERDAY) /* leap year */ [all...] |
H A D | ntp_refclock.h | 155 int year; /* year of eternity */ member in struct:refclockproc 156 int day; /* day of year */ 161 u_long yearstart; /* beginning of year */
|
/freebsd-11-stable/contrib/ntp/ntpq/ |
H A D | ntpq.c | 2107 cal.year = (u_short)(*cp++ - '0'); 2109 cal.year = (u_short)((cal.year << 3) + (cal.year << 1)); 2110 cal.year = (u_short)(*cp++ - '0'); 2113 cal.year = (u_short)((cal.year << 3) + (cal.year << 1)); 2114 cal.year = (u_short)(cal.year [all...] |
/freebsd-11-stable/crypto/heimdal/kadmin/ |
H A D | load.c | 74 int year, month, date, hour, minute, second; local 80 &year, &month, &date, &hour, &minute, &second) != 6) 82 tm.tm_year = year - 1900;
|
/freebsd-11-stable/contrib/tzcode/stdtime/ |
H A D | localtime.c | 166 #define DAY_OF_YEAR 1 /* n - day of year */ 213 static time_t transtime(time_t janfirst, int year, 862 ** Day of year. 880 ** Given the Epoch-relative time of January 1, 00:00:00 UTC, in a year, the 881 ** year, a rule, and the offset from UTC at the time that rule takes effect, 886 transtime(janfirst, year, rulep, offset) 888 const int year; 898 leapyear = isleap(year); 916 ** n - day of year. 936 yy0 = (rulep->r_mon <= 2) ? (year 1052 int year; local [all...] |
/freebsd-11-stable/lib/libcalendar/ |
H A D | calendar.c | 37 * For each month tabulate the number of days elapsed in a year before the 38 * month. This assumes the internal date representation, where a year 40 * But we do need a special table for the year 1582, since 10 days are 60 static int firstweek(int year); 64 * March 1st of year zero. 73 * Compute the year by starting with an approximation not smaller 75 * year which does not begin after ndays. 84 * Set r to the days left in the year and compute the month by 100 * Return the number of days since March 1st of the year zero. 127 * days since March 1st, year zer [all...] |
/freebsd-11-stable/tools/tools/vxge/ |
H A D | vxge_cmn.h | 201 u32 year; member in struct:_vxge_hal_device_date_t
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 50 * and check that year/month/day/hour/minute/second are as expected. 59 int year, int month, int day, int hour, int minute, int second) 88 if (year != ANY) 89 ATF_CHECK_MSG(tm.tm_year + 1900 == year, 90 "parsedate(%s) expected year %d got %d (+1900)\n", 91 argstr, year, (int)tm.tm_year); 126 2069, 9, 10, 0, 0, 0); /* year < 70: add 2000 */ 128 1970, 9, 10, 0, 0, 0); /* 70 <= year < 100: add 1900 */ 130 69, 9, 10, 0, 0, 0); /* ISO8601 year remains unchanged */ 132 70, 9, 10, 0, 0, 0); /* ISO8601 year remain 57 parsecheck(const char *datestr, const time_t *reftime, const int *zoff, struct tm * time_to_tm(const time_t *, struct tm *), int year, int month, int day, int hour, int minute, int second) argument [all...] |
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | os_unix.c | 128 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument 135 if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 || 141 tm.tm_year = year - 1900; 181 tm->year = tm2->tm_year + 1900;
|
H A D | os.h | 119 * @year: Four digit year 132 int os_mktime(int year, int month, int day, int hour, int min, int sec, 141 int year; /* Four digit year */ member in struct:os_tm
|
/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | x509v3.c | 578 int year, month, day, hour, min, sec; local 600 year = parse_uint2(pos, end - pos); 601 if (year < 0) { 603 "UTCTime year", buf, len); 606 if (year < 50) 607 year += 2000; 609 year += 1900; 618 year = parse_uint4(pos, end - pos); 619 if (year < 0) { 621 "GeneralizedTime year", bu [all...] |
/freebsd-11-stable/crypto/openssl/crypto/ |
H A D | o_time.c | 228 short year, month, day, hour, minute, second, centi_second; member in struct:vms_vectime 256 result->tm_year = time_values.year - 1900; 279 * with restricted date types and overflows which cause the year 2038
|