Searched refs:is_leap (Results 1 – 2 of 2) sorted by relevance
92 bool is_leap = (!yd1 || yd2) && !yd3; in YearMonthDayFromDays() local95 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()
177 is_leap(int year) in is_leap() function194 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()