Lines Matching refs:Time

34   return static_cast<int>(delta_ / Time::kMicrosecondsPerDay);  in InDays()
42 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour); in InHours()
50 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute); in InMinutes()
58 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; in InSecondsF()
66 return delta_ / Time::kMicrosecondsPerSecond; in InSeconds()
74 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond; in InMillisecondsF()
82 return delta_ / Time::kMicrosecondsPerMillisecond; in InMilliseconds()
90 return (delta_ + Time::kMicrosecondsPerMillisecond - 1) / in InMillisecondsRoundedUp()
91 Time::kMicrosecondsPerMillisecond; in InMillisecondsRoundedUp()
139 Time Time::FromTimeT(time_t tt) { in FromTimeT()
141 return Time(); // Preserve 0 so we can tell it doesn't exist. in FromTimeT()
144 return Time(kTimeTToMicrosecondsOffset) + TimeDelta::FromSeconds(tt); in FromTimeT()
147 time_t Time::ToTimeT() const { in ToTimeT()
163 Time Time::FromDoubleT(double dt) { in FromDoubleT()
165 return Time(); // Preserve 0 so we can tell it doesn't exist. in FromDoubleT()
166 return Time(kTimeTToMicrosecondsOffset) + TimeDelta::FromSecondsD(dt); in FromDoubleT()
169 double Time::ToDoubleT() const { in ToDoubleT()
182 Time Time::FromTimeSpec(const timespec& ts) { in FromTimeSpec()
185 base::Time::kNanosecondsPerSecond); in FromTimeSpec()
190 Time Time::FromJsTime(double ms_since_epoch) { in FromJsTime()
193 return Time(kTimeTToMicrosecondsOffset) + in FromJsTime()
197 double Time::ToJsTime() const { in ToJsTime()
210 int64_t Time::ToJavaTime() const { in ToJavaTime()
224 Time Time::UnixEpoch() { in UnixEpoch()
225 Time time; in UnixEpoch()
230 Time Time::LocalMidnight() const { in LocalMidnight()
241 bool Time::FromStringInternal(const char* time_string, in FromStringInternal()
243 Time* parsed_time) { in FromStringInternal()
257 *parsed_time = Time(result_time); in FromStringInternal()
262 bool Time::ExplodedMostlyEquals(const Exploded& lhs, const Exploded& rhs) { in ExplodedMostlyEquals()
269 std::ostream& operator<<(std::ostream& os, Time time) { in operator <<()
270 Time::Exploded exploded; in operator <<()
288 : unix_epoch_(TimeTicks::Now() - (Time::Now() - Time::UnixEpoch())) {} in UnixEpochSingleton()
340 bool Time::Exploded::HasValidValues() const { in HasValidValues()