• Home
  • Raw
  • Download

Lines Matching refs:Time

45   return static_cast<int>(delta_ / Time::kMicrosecondsPerDay);  in InDays()
53 int result = delta_ / Time::kMicrosecondsPerDay; in InDaysFloored()
54 int64_t remainder = delta_ - (result * Time::kMicrosecondsPerDay); in InDaysFloored()
66 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour); in InHours()
74 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute); in InMinutes()
82 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; in InSecondsF()
90 return delta_ / Time::kMicrosecondsPerSecond; in InSeconds()
98 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond; in InMillisecondsF()
106 return delta_ / Time::kMicrosecondsPerMillisecond; in InMilliseconds()
114 int64_t result = delta_ / Time::kMicrosecondsPerMillisecond; in InMillisecondsRoundedUp()
115 int64_t remainder = delta_ - (result * Time::kMicrosecondsPerMillisecond); in InMillisecondsRoundedUp()
143 return delta_ * Time::kNanosecondsPerMicrosecond; in InNanoseconds()
179 Time Time::Now() { in Now()
184 Time Time::NowFromSystemTime() { in NowFromSystemTime()
190 Time Time::FromDeltaSinceWindowsEpoch(TimeDelta delta) { in FromDeltaSinceWindowsEpoch()
191 return Time(delta.InMicroseconds()); in FromDeltaSinceWindowsEpoch()
194 TimeDelta Time::ToDeltaSinceWindowsEpoch() const { in ToDeltaSinceWindowsEpoch()
199 Time Time::FromTimeT(time_t tt) { in FromTimeT()
201 return Time(); // Preserve 0 so we can tell it doesn't exist. in FromTimeT()
204 return Time(kTimeTToMicrosecondsOffset) + TimeDelta::FromSeconds(tt); in FromTimeT()
207 time_t Time::ToTimeT() const { in ToTimeT()
223 Time Time::FromDoubleT(double dt) { in FromDoubleT()
225 return Time(); // Preserve 0 so we can tell it doesn't exist. in FromDoubleT()
226 return Time(kTimeTToMicrosecondsOffset) + TimeDelta::FromSecondsD(dt); in FromDoubleT()
229 double Time::ToDoubleT() const { in ToDoubleT()
242 Time Time::FromTimeSpec(const timespec& ts) { in FromTimeSpec()
245 base::Time::kNanosecondsPerSecond); in FromTimeSpec()
250 Time Time::FromJsTime(double ms_since_epoch) { in FromJsTime()
253 return Time(kTimeTToMicrosecondsOffset) + in FromJsTime()
257 double Time::ToJsTime() const { in ToJsTime()
270 Time Time::FromJavaTime(int64_t ms_since_epoch) { in FromJavaTime()
271 return base::Time::UnixEpoch() + in FromJavaTime()
275 int64_t Time::ToJavaTime() const { in ToJavaTime()
289 Time Time::UnixEpoch() { in UnixEpoch()
290 Time time; in UnixEpoch()
295 Time Time::LocalMidnight() const { in LocalMidnight()
302 Time out_time; in LocalMidnight()
307 return Time(); in LocalMidnight()
311 bool Time::FromStringInternal(const char* time_string, in FromStringInternal()
313 Time* parsed_time) { in FromStringInternal()
327 *parsed_time = Time(result_time); in FromStringInternal()
332 bool Time::ExplodedMostlyEquals(const Exploded& lhs, const Exploded& rhs) { in ExplodedMostlyEquals()
339 std::ostream& operator<<(std::ostream& os, Time time) { in operator <<()
340 Time::Exploded exploded; in operator <<()
364 (subtle::TimeNowIgnoringOverride() - Time::UnixEpoch()); in UnixEpoch()
410 bool Time::Exploded::HasValidValues() const { in HasValidValues()