Searched refs:is_leap (Results 1 - 3 of 3) sorted by relevance

/external/v8/src/
H A Ddate.cc92 bool is_leap = (!yd1 || yd2) && !yd3; local
95 DCHECK(is_leap || (days >= 0));
96 DCHECK((days < 365) || (is_leap && (days < 366)));
97 DCHECK(is_leap == ((*year % 4 == 0) && (*year % 100 || (*year % 400 == 0))));
98 DCHECK(is_leap || ((DaysFromYearMonth(*year, 0) + days) == save_days));
99 DCHECK(!is_leap || ((DaysFromYearMonth(*year, 0) + days + 1) == save_days));
101 days += is_leap;
104 if (days >= 31 + 28 + BoolToInt(is_leap)) {
105 days -= 31 + 28 + BoolToInt(is_leap);
/external/python/cpython2/Modules/
H A Ddatetimemodule.c177 is_leap(int year) function
194 if (month == 2 && is_leap(year))
209 if (month > 2 && is_leap(year))
311 assert(leapyear == is_leap(*year));
/external/python/cpython3/Modules/
H A D_datetimemodule.c205 is_leap(int year) function
222 if (month == 2 && is_leap(year))
237 if (month > 2 && is_leap(year))
333 assert(leapyear == is_leap(*year));

Completed in 152 milliseconds