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