Lines Matching defs:Time

5 // Time represents an absolute point in time, internally represented as
16 // decrease (if the user changes the computer clock, Time::Now() may actually
37 class Time;
130 Time operator+(Time t) const;
154 friend class Time;
172 // Time -----------------------------------------------------------------------
175 class Time {
213 // Contains the NULL time. Use Time::Now() to get the current time.
214 explicit Time() : us_(0) {
225 static Time Now();
231 static Time NowFromSystemTime();
233 // Converts to/from time_t in UTC and a Time class.
234 // TODO(brettw) this should be removed once everybody starts using the |Time|
236 static Time FromTimeT(time_t tt);
241 static Time FromDoubleT(double dt);
246 static Time FromFileTime(FILETIME ft);
255 // into a Time class.
256 static Time FromUTCExploded(const Exploded& exploded) {
259 static Time FromLocalExploded(const Exploded& exploded) {
263 // Converts an integer value representing Time to a class. This is used
264 // when deserializing a |Time| structure, using a value known to be
267 static Time FromInternalValue(int64 us) {
268 return Time(us);
271 // Converts a string representation of time to a Time object.
277 static bool FromString(const wchar_t* time_string, Time* parsed_time);
297 Time LocalMidnight() const;
299 Time& operator=(Time other) {
305 TimeDelta operator-(Time other) const {
310 Time& operator+=(TimeDelta delta) {
314 Time& operator-=(TimeDelta delta) {
320 Time operator+(TimeDelta delta) const {
321 return Time(us_ + delta.delta_);
323 Time operator-(TimeDelta delta) const {
324 return Time(us_ - delta.delta_);
328 bool operator==(Time other) const {
331 bool operator!=(Time other) const {
334 bool operator<(Time other) const {
337 bool operator<=(Time other) const {
340 bool operator>(Time other) const {
343 bool operator>=(Time other) const {
356 static Time FromExploded(bool is_local, const Exploded& exploded);
358 explicit Time(int64 us) : us_(us) {
365 // Time in microseconds in UTC.
369 inline Time TimeDelta::operator+(Time t) const {
370 return Time(t.us_ + delta_);
377 return TimeDelta(days * Time::kMicrosecondsPerDay);
382 return TimeDelta(hours * Time::kMicrosecondsPerHour);
387 return TimeDelta(minutes * Time::kMicrosecondsPerMinute);
392 return TimeDelta(secs * Time::kMicrosecondsPerSecond);
397 return TimeDelta(ms * Time::kMicrosecondsPerMillisecond);