Searched refs:year (Results 101 - 125 of 191) sorted by relevance

12345678

/freebsd-11-stable/contrib/ntp/libntp/
H A Dntp_calendar.c301 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 Dprettydate.c42 * 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 Drefclock_wwvb.c68 * 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 Drefclock_acts.c110 * 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 Dclk_dcf7000.c106 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
H A Dclk_trimtaip.c117 STOI(O_YEAR, &clock_time->year) ||
H A Dclk_varitext.c100 {8, 2}, {5, 2}, {2, 2}, /* day, month, year */
152 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
H A Dclk_hopf6021.c151 STOI(O_YEAR, &clock_time->year) ||
/freebsd-11-stable/sys/x86/isa/
H A Datrtc.c526 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 Dzic.c159 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 Dat91_rtc.c286 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 Dtouch.c282 stime_arg2(const char *arg, int year, struct timespec *tvp) argument
296 if (year) {
/freebsd-11-stable/sys/dev/iicbus/
H A Ds35390a.c318 bct.year = bcd[S390_RT1_YEAR];
343 bcd[S390_RT1_YEAR] = bct.year & 0xff;
/freebsd-11-stable/contrib/ntp/include/
H A Dntp_calendar.h13 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 Dntp_refclock.h155 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 Dntpq.c2107 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 Dload.c74 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 Dlocaltime.c166 #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 Dcalendar.c37 * 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 Dvxge_cmn.h201 u32 year; member in struct:_vxge_hal_device_date_t
/freebsd-11-stable/contrib/netbsd-tests/lib/libutil/
H A Dt_parsedate.c50 * 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 Dos_unix.c128 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 Dos.h119 * @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 Dx509v3.c578 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 Do_time.c228 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

Completed in 367 milliseconds

12345678