Lines Matching refs:days
59 // days = floor(time_ms / kMsPerDay).
60 static int TimeInDay(int64_t time_ms, int days) {
61 return static_cast<int>(time_ms - days * kMsPerDay);
67 // Given the number of days since the epoch, computes the weekday.
69 int Weekday(int days) {
70 int result = (days + 4) % 7;
123 int days = DaysFromTime(time_ms);
124 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay);
126 YearMonthDayFromDays(days, &year, &month, &day);
143 // Given the number of days since the epoch, computes
145 void YearMonthDayFromDays(int days, int* year, int* month, int* day);
147 // Computes the number of days since the epoch for
172 // more than one daylight savings offset change per 19 days.