Lines Matching refs:year
966 int sec, min, days, month, year;
992 year = sd->Year;
993 days += year * 365;
994 days += (year/4); /* leap year */
995 /* generalized leap year calculation is more complex, ie no leap year
997 year is 2**7, the last year is 1980+127, which means we need only
999 adjust for the lack of leap year for the year 2100, as 2000 was a
1000 leap year (divisable by 400) */
1001 if (year >= 120) /* the year 2100 */
1002 days = days - 1; /* do not count leap year for the year 2100 */
1004 /* adjust for leap year where we are still before leap day */
1005 if (year != 120)
1006 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0);