Home
last modified time | relevance | path

Searched refs:is_leap (Results 1 – 2 of 2) sorted by relevance

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