/src/sys/arch/mvme68k/stand/sboot/ |
clock.c | 105 int sec, min, hour, day, mon, year; local in function:time 113 year = cl->cl_year; 115 return chiptotime(sec, min, hour, day, mon, year);
|
/src/sys/dev/ic/ |
intersil7170.c | 78 int year; local in function:intersil7170_gettime_ymdhms 95 year = bus_space_read_1(bt, bh, INTERSIL_IYEAR); 103 year += sc->sc_year0; 104 if (year < POSIX_BASE_YEAR && 106 year += 100; 108 dt->dt_year = year; 123 int year; local in function:intersil7170_settime_ymdhms 126 year = dt->dt_year - sc->sc_year0; 127 if (year > 99 && (sc->sc_flag & INTERSIL7170_NO_CENT_ADJUST) == 0) 128 year -= 100 [all...] |
mc146818.c | 82 int s, timeout, cent, year; local in function:mc146818_gettime_ymdhms 104 year = FROMREG((*sc->sc_mcread)(sc, MC_YEAR)); 107 year += cent * 100; 112 year += sc->sc_year0; 113 if (year < POSIX_BASE_YEAR && 115 year += 100; 116 dt->dt_year = year; 132 int s, cent, year; local in function:mc146818_settime_ymdhms 152 year = dt->dt_year - sc->sc_year0; 154 cent = year / 100 [all...] |
mk48txx.c | 109 int year; local in function:mk48txx_gettime_ymdhms 125 year = bcdtobin((*sc->sc_nvrd)(sc, clkoff + MK48TXX_IYEAR)); 128 year += 100*bcdtobin(csr & MK48TXX_CSR_CENT_MASK); 130 year += sc->sc_year0; 131 if (year < POSIX_BASE_YEAR && 133 year += 100; 136 dt->dt_year = year; 156 int year; local in function:mk48txx_settime_ymdhms 163 year = dt->dt_year - sc->sc_year0; 164 if (year > 99 & [all...] |
/src/sys/dev/ |
clock_subr.c | 73 /* 4 year intervals include 1 leap year */ 76 /* 100 year intervals include 24 leap years */ 79 /* 400 year intervals include 97 leap years */ 85 uint64_t secs, i, year, days; local in function:clock_ymdhms_to_secs 87 year = dt->dt_year; 93 if (year < POSIX_BASE_YEAR) 96 if (is_leap_year(year) && dt->dt_mon > FEBRUARY) 99 if (year < 2001) { 101 for (i = POSIX_BASE_YEAR; i < year; i++ [all...] |
smbios_platform.c | 236 unsigned int *year) 253 *year = strtoul(s, NULL, 10); 260 unsigned int month, day, year; local in function:platform_add_date 265 if (platform_scan_date(tmpbuf, &month, &day, &year) != 3) 269 if (year > 9999) 271 if (year < 70) 272 year += 2000; 273 else if (year < 100) 274 year += 1900; 275 snprintf(datestr, sizeof(datestr), "%04u%02u%02u", year, month, day) [all...] |
/src/sys/arch/x68k/stand/libsa/ |
clock.c | 48 int sec, min, hour, day, mon, year; local in function:getsecs 53 year = ((val & 0x0fff0000) >> 16) + 1980; 69 for (y = 1970; y < year; y++)
|
/src/sys/arch/mipsco/obio/ |
mkclock.c | 140 int year, s; local in function:mkclock_write 142 year = dt->dt_year % 100; 152 mk_write(sc, 6, year);
|
/src/sys/arch/mac68k/mac68k/ |
pram.c | 64 long year, month, day, hour, minute, seconds, i, dayperyear; local in function:convtime 66 year = 1904; 77 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) { 87 year++; 119 monstr[month], day, year, hour, minute, seconds);
|
/src/sys/arch/playstation2/include/ |
bootinfo.h | 53 u_int8_t year; member in struct:bootinfo_rtc
|
/src/sys/arch/sparc/dev/ |
rtc.c | 148 u_int year; local in function:rtc_gettime_ymdhms 164 year = mc146818_read(sc, MC_YEAR); 170 /* year in the century 0..99: adjust to AD */ 171 year += 1900; 172 if (year < POSIX_BASE_YEAR && rtc_auto_century_adjust != 0) 173 year += 100; 174 dt->dt_year = year; 183 u_int year; local in function:rtc_settime_ymdhms 185 year = dt->dt_year - 1900; 186 if (year >= 100 && rtc_auto_century_adjust != 0 [all...] |
/src/sys/arch/mvme68k/stand/netboot/ |
config.h | 48 u_char year; member in struct:brdid
|
/src/sys/dev/acpi/ |
acpi_quirks.c | 160 int year = acpi_quirks_bios_year(); local in function:acpi_find_quirks 162 if (year != -1 && year <= ACPI_BLACKLIST_YEAR)
|
/src/lib/libc/time/ |
asctime.c | 97 int year, mday, hour, min, sec; local in function:asctime_r 116 year = timeptr->tm_year; 126 For years longer than four bytes, put extra spaces before the year 128 won't overwrite a digit within a year and truncate the year, 131 is undefined when the year is less than 1000 or greater than 9999. 135 if ((size_t)(year <= INT_MAX - TM_YEAR_BASE 137 ((-999 - TM_YEAR_BASE <= year 138 && year <= 9999 - TM_YEAR_BASE) 142 year + long_TM_YEAR_BASE [all...] |
strftime.c | 77 divide by the maximum number of non-leap seconds in a year, 491 case 'G': /* ISO 8601 year (four digits) */ 492 case 'g': /* ISO 8601 year (two digits) */ 495 ** year (the first Monday as the first day of week 1) as a decimal number 500 ** "Week 01 of a year is per definition the first week which has the 501 ** Thursday in this year, which is equivalent to the week which contains 502 ** the fourth day of January. In other words, the first week of a new year 503 ** is the week which has the majority of its days in the new year. Week 01 504 ** might also contain days from the previous year and the week before week 505 ** 01 of a year is the last week (52 or 53) of the previous year even i 512 int year; local in function:_fmt [all...] |
/src/sys/arch/hp300/dev/ |
rtc.c | 122 int i, year; local in function:rtc_gettime_ymdhms 146 year = rtc_to_decimal(12, 11) + RTC_BASE_YEAR; 147 if (year < POSIX_BASE_YEAR) 148 year += 100; 149 dt->dt_year = year; 160 int i, year; local in function:rtc_settime_ymdhms 163 year = dt->dt_year - RTC_BASE_YEAR; 164 if (year > 99) 165 year -= 100; 175 decimal_to_rtc(11, 12, year); [all...] |
/src/sys/arch/sh3/dev/ |
rtc.c | 157 unsigned int year; local in function:rtc_gettime_ymdhms 179 year = _reg_read_1(SH3_RYRCNT); 181 year = _reg_read_2(SH4_RYRCNT) & 0x00ff; 182 dt->dt_year = bcdtobin(year); 226 unsigned int year; local in function:rtc_settime_ymdhms 229 year = dt->dt_year - sc->sc_year0; 230 if (year > 99) 231 year -= 100; 233 year = bintobcd(year); [all...] |
/src/sys/arch/hp300/stand/common/ |
clock.c | 103 int year, month, day, hour, min, sec; local in function:clock_to_gmt 117 year = mc_read(MC_YEAR) + 1900; 153 year = bbc_to_decimal(12, 11) + 1900; 156 if (year < POSIX_BASE_YEAR) 157 year += 100; 161 year, month, day, hour, min, sec); 170 for (i = POSIX_BASE_YEAR; i < year; i++) 172 if (is_leap_year(year) && month > FEBRUARY)
|
/src/sys/dev/pci/ixgbe/ |
if_bypass.c | 99 ixgbe_get_bypass_time(u32 *year, u32 *sec) 103 *year = 1970; /* time starts at 01/01/1970 */ 107 while (*sec > SEC_THIS_YEAR(*year)) { 108 *sec -= SEC_THIS_YEAR(*year); 109 (*year)++; 529 u32 sec, year; local in function:ixgbe_bp_wd_reset 541 ixgbe_get_bypass_time(&year, &sec); 660 int year; local in function:ixgbe_bp_log 680 * time is in sec's this year, so convert to something 683 ixgbe_get_bypass_time(&year, &sec) 744 u32 mask, value, sec, year; local in function:ixgbe_bypass_init [all...] |
/src/sys/arch/evbmips/sbmips/ |
rtc.c | 154 uint8_t year, y2k; local in function:xirtc_settime 169 year = ymdhms->dt_year % 100; 173 WRITERTC(sc, X1241REG_YR, bintobcd(year)); 186 uint8_t hour, year, y2k; local in function:xirtc_gettime 192 year = READRTC(sc, X1241REG_YR); 194 ymdhms->dt_year = bcdtobin(y2k) * 100 + bcdtobin(year);
|
/src/sys/arch/hpcmips/vr/ |
rtc.c | 129 int year; local in function:vrrtc_attach 206 for (year = EPOCHYEAR; year < POSIX_BASE_YEAR; year++) { 207 sc->sc_epoch += days_per_year(year) * SECS_PER_DAY; 209 for (year = POSIX_BASE_YEAR; year < EPOCHYEAR; year++) { 210 sc->sc_epoch -= days_per_year(year) * SECS_PER_DAY;
|
/src/sys/arch/powerpc/powerpc/ |
rtas.c | 266 int status, year, month, day, hour, minute, second, nanosecond; local in function:rtas_todr_gettime_ymdhms 271 if (rtas_call(RTAS_FUNC_GET_TIME_OF_DAY, 0, 8, &status, &year, 275 t->dt_year = year; 288 int status, year, month, day, hour, minute, second, nanosecond; local in function:rtas_todr_settime_ymdhms 293 year = t->dt_year; 301 if (rtas_call(RTAS_FUNC_SET_TIME_OF_DAY, 7, 1, year, month,
|
/src/sys/arch/sbmips/sbmips/ |
rtc.c | 154 uint8_t year, y2k; local in function:xirtc_settime 169 year = ymdhms->dt_year % 100; 173 WRITERTC(sc, X1241REG_YR, bintobcd(year)); 186 uint8_t hour, year, y2k; local in function:xirtc_gettime 192 year = READRTC(sc, X1241REG_YR); 194 ymdhms->dt_year = bcdtobin(y2k) * 100 + bcdtobin(year);
|
/src/sys/dev/i2c/ |
em3027.c | 75 uint8_t year; member in struct:em3027rtc_watch 419 dt->dt_year = bcdtobin(w.year) + EM3027_BASE_YEAR; 438 w.year = bintobcd(dt->dt_year - EM3027_BASE_YEAR);
|
/src/usr.bin/at/ |
parsetime.c | 105 { "year", YEARS, 0 }, /* year ... */ 419 * assign_date() assigns a date, wrapping to next year if needed. 420 * Accept years in 4-digit, 2-digit, or current year (-1). 423 assign_date(struct tm *tm, int mday, int mon, int year) 426 if (year > 99) { /* four digit year */ 427 if (year >= TM_YEAR_BASE) 428 tm->tm_year = year - TM_YEAR_BASE; 432 else if (year >= 0) { /* two digit year * 460 int year; local in function:month [all...] |