Lines Matching defs:days
84 // days = floor(time_ms / kMsPerDay).
85 static int TimeInDay(int64_t time_ms, int days) {
86 return static_cast<int>(time_ms - days * kMsPerDay);
90 // Given the number of days since the epoch, computes the weekday.
92 int Weekday(int days) {
93 int result = (days + 4) % 7;
147 int days = DaysFromTime(time_ms);
148 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay);
150 YearMonthDayFromDays(days, &year, &month, &day);
167 // Given the number of days since the epoch, computes
169 void YearMonthDayFromDays(int days, int* year, int* month, int* day);
171 // Computes the number of days since the epoch for
196 // more than one daylight savings offset change per 19 days.