Lines Matching defs:year
972 int min, day, month, year;
998 year = sd->Year;
999 days += year * 365;
1000 days += (year/4); /* leap year */
1001 /* generalized leap year calculation is more complex, ie no leap year
1003 year is 2**7, the last year is 1980+127, which means we need only
1005 adjust for the lack of leap year for the year 2100, as 2000 was a
1006 leap year (divisable by 400) */
1007 if (year >= 120) /* the year 2100 */
1008 days = days - 1; /* do not count leap year for the year 2100 */
1010 /* adjust for leap year where we are still before leap day */
1011 if (year != 120)
1012 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0);