Lines Matching refs:kMsPerDay
20 static const int64_t kMsPerDay = kSecPerDay * 1000;
21 static const int64_t kMsPerMonth = kMsPerDay * 30;
52 // Computes floor(time_ms / kMsPerDay).
54 if (time_ms < 0) time_ms -= (kMsPerDay - 1);
55 return static_cast<int>(time_ms / kMsPerDay);
58 // Computes modulo(time_ms, kMsPerDay) given that
59 // days = floor(time_ms / kMsPerDay).
61 return static_cast<int>(time_ms - days * kMsPerDay);
124 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay);
128 return static_cast<int64_t>(new_days) * kMsPerDay + time_within_day_ms;