Lines Matching refs:day
48 int year, month, day;
49 YearMonthDayFromDays(days, &year, &month, &day);
50 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec);
60 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) {
63 if (Match(&rules_[i], year, month, day, time_in_day_sec)) {
70 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) {
75 if (rule->start_month == month && start_day > day) return false;
76 if (rule->start_month == month && start_day == day &&
80 if (rule->end_month == month && end_day < day) return false;
81 if (rule->end_month == month && end_day == day &&
88 int ComputeRuleDay(int year, int month, int day) {
89 if (day != 0) return day;
92 while (Weekday(days + day) != 6) day++;
93 return day + 1;
104 int day) {
106 return (result + day - 1) * DateCache::kMsPerDay;
149 // Check each day of 2010.
157 // Check one day from 2010 to 2100.