Lines Matching refs:day
49 int year, month, day; in GetDaylightSavingsOffsetFromOS() local
50 YearMonthDayFromDays(days, &year, &month, &day); in GetDaylightSavingsOffsetFromOS()
51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS()
61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { in FindRuleFor() argument
64 if (Match(&rules_[i], year, month, day, time_in_day_sec)) { in FindRuleFor()
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument
76 if (rule->start_month == month && start_day > day) return false; in Match()
77 if (rule->start_month == month && start_day == day && in Match()
81 if (rule->end_month == month && end_day < day) return false; in Match()
82 if (rule->end_month == month && end_day == day && in Match()
89 int ComputeRuleDay(int year, int month, int day) { in ComputeRuleDay() argument
90 if (day != 0) return day; in ComputeRuleDay()
93 while (Weekday(days + day) != 6) day++; in ComputeRuleDay()
94 return day + 1; in ComputeRuleDay()
105 int day) { in TimeFromYearMonthDay() argument
107 return (result + day - 1) * DateCache::kMsPerDay; in TimeFromYearMonthDay()