Lines Matching refs:year
56 int days, int* year, int* month, int* day) { in YearMonthDayFromDays() argument
64 *year = ymd_year_; in YearMonthDayFromDays()
73 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays()
76 DCHECK(DaysFromYearMonth(*year, 0) + days == save_days); in YearMonthDayFromDays()
81 *year += 100 * yd1; in YearMonthDayFromDays()
86 *year += 4 * yd2; in YearMonthDayFromDays()
91 *year += yd3; in YearMonthDayFromDays()
99 DCHECK(is_leap == ((*year % 4 == 0) && (*year % 100 || (*year % 400 == 0)))); in YearMonthDayFromDays()
100 DCHECK(is_leap || ((DaysFromYearMonth(*year, 0) + days) == save_days)); in YearMonthDayFromDays()
101 DCHECK(!is_leap || ((DaysFromYearMonth(*year, 0) + days + 1) == save_days)); in YearMonthDayFromDays()
127 DCHECK(DaysFromYearMonth(*year, *month) + *day - 1 == save_days); in YearMonthDayFromDays()
129 ymd_year_ = *year; in YearMonthDayFromDays()
136 int DateCache::DaysFromYearMonth(int year, int month) { in DaysFromYearMonth() argument
142 year += month / 12; in DaysFromYearMonth()
145 year--; in DaysFromYearMonth()
166 int year1 = year + year_delta; in DaysFromYearMonth()
173 if ((year % 4 != 0) || (year % 100 == 0 && year % 400 != 0)) { in DaysFromYearMonth()