/freebsd-10.0-release/sys/i386/acpica/ |
H A D | acpi_machdep.c | 93 int year; local 97 sscanf(va + 11, "%2d", &year); 104 if (year > 90 && year < 99)
|
/freebsd-10.0-release/sys/pc98/cbus/ |
H A D | pcrtc.c | 187 rtc_outb(bin2bcd(ct.year % 100)); /* Write back Year */ 213 ct.year = bcd2bin(rtc_inb() & 0xff) + 1900; /* year */ 214 if (ct.year < 1995) 215 ct.year += 100;
|
/freebsd-10.0-release/sys/powerpc/mpc85xx/ |
H A D | ds1553_core.c | 115 ct.year = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_YEAR)); 120 ct.year += sc->year_offset; 147 ct.year -= sc->year_offset; 167 (*sc->sc_write)(dev, DS1553_OFF_YEAR, TOBCD(ct.year));
|
/freebsd-10.0-release/usr.bin/calendar/ |
H A D | io.c | 90 int year[MAXCOUNT]; local 177 if ((count = parsedaymonth(buf, year, month, day, &flags, 200 tm.tm_year = year[i] - 1900; 205 events[i] = event_add(year[i], month[i], day[i], dbuf,
|
/freebsd-10.0-release/usr.sbin/newsyslog/ |
H A D | ptimes.c | 82 static int days_pmonth(int month, int year); 90 days_pmonth(int month, int year) argument 100 * We are usually called with a 'tm-year' value 103 if (year < 1900) 104 year += 1900; 105 if (year % 4 == 0) { 107 * This is a leap year, as long as it is not a 111 if (year % 100 != 0) 113 else if (year % 400 == 0) 524 * If the user specified a year an [all...] |
/freebsd-10.0-release/contrib/ntp/include/ |
H A D | ntp.h | 24 #define YEAR_PIVOT 98 /* 97/98: years < this are year 2000+ 25 * FYI: official UNIX pivot year is 29 * Number of Days since 1 BC Gregorian to 1 January of given year 31 #define julian0(year) (((year) * 365 ) + ((year) > 0 ? (((year) + 3) \ 32 / 4 - ((year - 1) / 100) + ((year - 1) / \ 36 * Number of days since start of NTP time to 1 January of given year [all...] |
/freebsd-10.0-release/bin/date/ |
H A D | vary.c | 107 int year; local 109 year = t->tm_year + 1900; 112 if (!(year % 400)) 114 else if (!(year % 100)) 116 else if (!(year % 4)) 160 val += 11 - t->tm_mon; /* early next year */ 162 val -= t->tm_mon + 1; /* later this year */ 177 val = 13 - val + t->tm_mon; /* later last year */ 179 val = t->tm_mon - val + 1; /* early this year */
|
/freebsd-10.0-release/contrib/ntp/ntpd/ |
H A D | refclock_hpgps.c | 107 * Tables to compute the day of year from yyyymmdd timecode. 416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second, 461 * Compute the day of year from the yyyymmdd format. 468 if ( ! isleap_4(pp->year) ) { /* Y2KFixes */ 469 /* not a leap year */ 477 /* a leap year */ 507 pp->year--; 508 if ( isleap_4(pp->year) ) /* Y2KFixes */ 519 pp->year++;
|
H A D | refclock_arc.c | 236 9) We would appear to have a year-2000 problem with this clock since 237 it returns only the two least-significant digits of the year. But 238 ntpd ignores the year and uses the local-system year instead, so 240 sensible thing with the dates, wrapping them into a 100-year 317 /* 12. year tens */ 318 /* 13. year units */ 1156 || !get2(pp->a_lastcode + 12, &pp->year)) { 1182 (pp->year < 0) || (pp->year > 9 [all...] |
H A D | refclock_mx4200.c | 395 /* month of year */ 396 /* year */ 586 /* month of year */ 587 /* year */ 891 pp->year, pp->day, pp->hour, pp->minute, pp->second, 963 int year, day_of_year, month, day_of_month; local 973 &sentence_type, &time_mark_valid, &year, &month, &day_of_month, 1022 * (Certainly can't be any year before this code was last altered!) 1025 day_of_month < 1 || month < 1 || year < YEAR_LAST_MODIFIED) { 1028 year, mont 1143 mx4200_jday( int year, int month, int day_of_month ) argument [all...] |
H A D | refclock_heath.c | 43 * transition. The timecode includes both the day of year and time of 79 * dd/mm/yr = day, month, year 174 * Tables to compute the ddd of year form icky dd/mm timecode. Viva la 303 &pp->year) != 8) { 345 * We determine the day of the year from the DIPswitches. This 348 * looks at the timecode and year the radio shows, then computes 350 * If in the third year of that cycle and the third and later 351 * months of that year, add one to the day. Then, correct the 360 if (pp->year % 4) {
|
H A D | refclock_pcf.c | 156 * Y2K convert the 2-digit year 194 pp->year = tp->tm_year + 1900; 206 unit, pp->year, tp->tm_mon + 1, tp->tm_mday, pp->hour,
|
/freebsd-10.0-release/sys/x86/isa/ |
H A D | atrtc.c | 314 writertc(RTC_YEAR, bin2bcd(ct.year % 100)); /* Write back Year */ 316 writertc(RTC_CENTURY, bin2bcd(ct.year / 100)); /* ... and Century */ 353 ct.year = readrtc(RTC_YEAR); 355 ct.year += readrtc(RTC_CENTURY) * 100; 357 ct.year += 2000;
|
/freebsd-10.0-release/contrib/ntp/libparse/ |
H A D | parse.c | 420 if ( clock_time->year < YEAR_PIVOT ) /* Y2KFixes [ */ 421 clock_time->year += 100; /* convert 20xx%100 to 20xx-1900 */ 422 if ( clock_time->year < YEAR_BREAK ) /* expand to full four-digits */ 423 clock_time->year += 1900; 425 if (clock_time->year < 1970 ) /* Y2KFixes ] */ 434 t = julian0(clock_time->year) - julian0(1970); /* Y2kFixes */ 443 /* adjust leap year */ 444 if (clock_time->month < 3 && days_per_year(clock_time->year) == 366) 447 if ( clock_time->month >= 3 && isleap_4(clock_time->year) ) 448 t++; /* add one more if within leap year */ [all...] |
H A D | clk_computime.c | 83 {8, 2}, {5, 2}, {2, 2}, /* day, month, year */ 127 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year,
|
H A D | clk_rawdcf.c | 284 clock_time->year = ext_bf(buffer, DCF_Y10, dcfprm->zerobits); 285 clock_time->year = TIMES10(clock_time->year) + ext_bf(buffer, DCF_Y1, dcfprm->zerobits); 313 (int)clock_time->hour, (int)clock_time->minute, (int)clock_time->day, (int)clock_time->month,(int) clock_time->year,
|
H A D | clk_rcc8000.c | 45 * DDD - Day of year number 88 STOI(O_YEAR, &clock_time->year) || 104 * 2 - British Summer Time (receiver set to emit GMT all year.) 105 * 1 - Leap year
|
H A D | clk_schmid.c | 140 clock_time->year = buffer[6];
|
/freebsd-10.0-release/contrib/diff/lib/ |
H A D | strftime.c | 119 /* Nonzero if YEAR is a leap year (every 4 years, 121 # define __isleap(year) \ 122 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) 278 /* Compute intervening leap days correctly even if year is negative. 300 year to the year day YDAY with week day WDAY. ISO weeks start on 301 Monday; the first ISO week has the year's first Thursday. YDAY may 794 int year local 1118 int year = tp->tm_year + TM_YEAR_BASE; local [all...] |
/freebsd-10.0-release/lib/libc/stdtime/ |
H A D | strftime.c | 352 case 'G': /* ISO 8601 year (four digits) */ 353 case 'g': /* ISO 8601 year (two digits) */ 356 ** year (the first Monday as the first day of week 1) as a decimal number 361 ** "Week 01 of a year is per definition the first week which has the 362 ** Thursday in this year, which is equivalent to the week which contains 363 ** the fourth day of January. In other words, the first week of a new year 364 ** is the week which has the majority of its days in the new year. Week 01 365 ** might also contain days from the previous year and the week before week 366 ** 01 of a year is the last week (52 or 53) of the previous year eve 373 int year; local [all...] |
/freebsd-10.0-release/gnu/usr.bin/rcs/lib/ |
H A D | rcsrev.c | 257 normalizeyear(date, year) 259 char year[5]; 262 year[0] = '1'; 263 year[1] = '9'; 264 year[2] = date[0]; 265 year[3] = date[1]; 266 year[4] = 0; 267 return year;
|
/freebsd-10.0-release/sys/arm/mv/ |
H A D | rtc.c | 146 ct.year = YEAR_BASE + FROMBCD((val & 0xff0000) >> 16); 171 (TOBCD(ct.year - YEAR_BASE) << 16);
|
/freebsd-10.0-release/sys/arm/s3c2xx0/ |
H A D | s3c24x0_rtc.c | 91 ct.year = YEAR_BASE + FROMBCD(bus_read_1(sc->mem_res, RTC_BCDYEAR)); \ 138 bus_write_1(sc->mem_res, RTC_BCDYEAR, TOBCD(ct.year - YEAR_BASE));
|
/freebsd-10.0-release/sys/mips/atheros/ |
H A D | pcf2123_rtc.c | 135 ct.year = YEAR_BASE + FROMBCD(rxTimedate[7]); 179 txTimedate[7] = TOBCD(ct.year - YEAR_BASE);
|
/freebsd-10.0-release/sys/powerpc/pseries/ |
H A D | rtas_dev.c | 121 ct.year = tod[1]; 144 error = rtas_call_method(token, 7, 1, ct.year, ct.mon, ct.day, ct.hour,
|