Lines Matching refs:rule
50 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS() local
51 return rule == NULL ? 0 : rule->offset_sec * 1000; in GetDaylightSavingsOffsetFromOS()
70 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument
71 if (rule->year != 0 && rule->year != year) return false; in Match()
72 if (rule->start_month > month) return false; in Match()
73 if (rule->end_month < month) return false; in Match()
74 int start_day = ComputeRuleDay(year, rule->start_month, rule->start_day); in Match()
75 if (rule->start_month == month && start_day > day) return false; in Match()
76 if (rule->start_month == month && start_day == day && in Match()
79 int end_day = ComputeRuleDay(year, rule->end_month, rule->end_day); in Match()
80 if (rule->end_month == month && end_day < day) return false; in Match()
81 if (rule->end_month == month && end_day == day && in Match()