Lines Matching full:time
5 #include "base/time.h"
16 return static_cast<int>(delta_ / Time::kMicrosecondsPerDay);
20 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour);
24 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute);
28 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond;
32 return delta_ / Time::kMicrosecondsPerSecond;
36 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond;
40 return delta_ / Time::kMicrosecondsPerMillisecond;
44 return (delta_ + Time::kMicrosecondsPerMillisecond - 1) /
45 Time::kMicrosecondsPerMillisecond;
52 // Time -----------------------------------------------------------------------
55 Time Time::FromTimeT(time_t tt) {
57 return Time(); // Preserve 0 so we can tell it doesn't exist.
58 return Time((tt * kMicrosecondsPerSecond) + kTimeTToMicrosecondsOffset);
61 time_t Time::ToTimeT() const {
68 Time Time::FromDoubleT(double dt) {
70 return Time(); // Preserve 0 so we can tell it doesn't exist.
71 return Time(static_cast<int64>((dt *
76 double Time::ToDoubleT() const {
84 Time Time::UnixEpoch() {
85 Time time;
86 time.us_ = kTimeTToMicrosecondsOffset;
87 return time;
90 Time Time::LocalMidnight() const {
101 bool Time::FromString(const wchar_t* time_string, Time* parsed_time) {
112 *parsed_time = Time(result_time);
116 // Time::Exploded -------------------------------------------------------------
122 bool Time::Exploded::HasValidValues() const {