Lines Matching refs: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
44 class Time;
137 Time operator+(Time t) const;
161 friend class Time;
179 // Time -----------------------------------------------------------------------
182 class BASE_API Time {
221 // Exploded value can be successfully converted to a Time value.
225 // Contains the NULL time. Use Time::Now() to get the current time.
226 explicit Time() : us_(0) {
235 static Time UnixEpoch();
240 static Time Now();
246 static Time NowFromSystemTime();
248 // Converts to/from time_t in UTC and a Time class.
249 // TODO(brettw) this should be removed once everybody starts using the |Time|
251 static Time FromTimeT(time_t tt);
257 // initialized", we map it to empty Time object that also means "not
259 static Time FromDoubleT(double dt);
267 static Time FromFileTime(FILETIME ft);
294 // into a Time class.
295 static Time FromUTCExploded(const Exploded& exploded) {
298 static Time FromLocalExploded(const Exploded& exploded) {
302 // Converts an integer value representing Time to a class. This is used
303 // when deserializing a |Time| structure, using a value known to be
306 static Time FromInternalValue(int64 us) {
307 return Time(us);
310 // Converts a string representation of time to a Time object.
316 static bool FromString(const wchar_t* time_string, Time* parsed_time);
336 Time LocalMidnight() const;
338 Time& operator=(Time other) {
344 TimeDelta operator-(Time other) const {
349 Time& operator+=(TimeDelta delta) {
353 Time& operator-=(TimeDelta delta) {
359 Time operator+(TimeDelta delta) const {
360 return Time(us_ + delta.delta_);
362 Time operator-(TimeDelta delta) const {
363 return Time(us_ - delta.delta_);
367 bool operator==(Time other) const {
370 bool operator!=(Time other) const {
373 bool operator<(Time other) const {
376 bool operator<=(Time other) const {
379 bool operator>(Time other) const {
382 bool operator>=(Time other) const {
389 explicit Time(int64 us) : us_(us) {
398 static Time FromExploded(bool is_local, const Exploded& exploded);
411 // Time in microseconds in UTC.
419 return TimeDelta(days * Time::kMicrosecondsPerDay);
424 return TimeDelta(hours * Time::kMicrosecondsPerHour);
429 return TimeDelta(minutes * Time::kMicrosecondsPerMinute);
434 return TimeDelta(secs * Time::kMicrosecondsPerSecond);
439 return TimeDelta(ms * Time::kMicrosecondsPerMillisecond);
447 inline Time TimeDelta::operator+(Time t) const {
448 return Time(t.us_ + delta_);