Lines Matching refs:month
86 int days, int* year, int* month, int* day) {
89 // the same year and month as the cached 'days'.
95 *month = ymd_month_;
141 *month = i;
150 *month = 0;
153 *month = 1;
157 DCHECK(DaysFromYearMonth(*year, *month) + *day - 1 == save_days);
160 ymd_month_ = *month;
166 int DateCache::DaysFromYearMonth(int year, int month) {
172 year += month / 12;
173 month %= 12;
174 if (month < 0) {
176 month += 12;
179 DCHECK_GE(month, 0);
180 DCHECK_LT(month, 12);
204 return day_from_year + day_from_month[month];
206 return day_from_year + day_from_month_leap[month];
210 void DateCache::BreakDownTime(int64_t time_ms, int* year, int* month, int* day,
215 YearMonthDayFromDays(days, year, month, day);