Lines Matching defs:year
76 * DOS year zero is 1980.
121 uint_t year, month, day, hour, min, sec;
133 for (year = YEAR_ZERO; unixtime >= days_in_year(year) * 86400;
134 year++)
135 unixtime -= 86400 * days_in_year(year);
137 if (year > 127 + YEAR_ZERO) {
145 for (month = 1; unixtime >= 86400 * days_in_month(month, year);
147 unixtime -= 86400 * days_in_month(month, year);
149 year -= YEAR_ZERO;
162 PC_DPRINTF3(1, "ux2pc date: %d.%d.%d\n", day, month, YEAR_ZERO + year);
166 ASSERT(year >= 0 && year < 128);
168 ASSERT(day >= 1 && day <= days_in_month(month, year));
176 LE_16(year << YEARSHIFT | month << MONSHIFT | day << DAYSHIFT);
192 uint_t year, month, day, hour, min, sec;
199 year = (LE_16(pctp->pct_date) >> YEARSHIFT) & YEARMASK;
200 year += YEAR_ZERO;
207 year = YEAR_ZERO;
212 day < 1 || day > days_in_month(month, year) ||
216 day, month, year, hour, min, sec);
221 PC_DPRINTF3(1, "pc2ux date: %d.%d.%d\n", day, month, year);
230 *unixtime += 86400 * (int64_t)days_in_month(month, year);
232 while (year > YEAR_ZERO) {
233 year--;
234 *unixtime += 86400 * (int64_t)days_in_year(year);