Lines Matching refs:month
49 int year, month, day;
50 YearMonthDayFromDays(days, &year, &month, &day);
51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec);
61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) {
64 if (Match(&rules_[i], year, month, day, time_in_day_sec)) {
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) {
73 if (rule->start_month > month) return false;
74 if (rule->end_month < month) return false;
76 if (rule->start_month == month && start_day > day) return false;
77 if (rule->start_month == month && start_day == day &&
81 if (rule->end_month == month && end_day < day) return false;
82 if (rule->end_month == month && end_day == day &&
89 int ComputeRuleDay(int year, int month, int day) {
91 int days = DaysFromYearMonth(year, month);
92 // Find the first Sunday of the month.
104 int month,
106 int64_t result = date_cache->DaysFromYearMonth(year, month);