Searched refs:us_ (Results 1 – 7 of 7) sorted by relevance
176 Time() : us_(0) {} in Time()179 bool IsNull() const { return us_ == 0; } in IsNull()182 bool IsMax() const { return us_ == std::numeric_limits<int64_t>::max(); } in IsMax()208 return us_; in ToInternalValue()229 us_ = other.us_;235 return TimeDelta::FromMicroseconds(us_ - other.us_);240 us_ += delta.InMicroseconds();244 us_ -= delta.InMicroseconds();250 return Time(us_ + delta.InMicroseconds());253 return Time(us_ - delta.InMicroseconds());[all …]
231 ASSERT(us_ >= 0); in ToFiletime()243 uint64_t us = static_cast<uint64_t>(us_ + kTimeToEpochInMicroseconds) * 10; in ToFiletime()292 ts.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimespec()293 ts.tv_nsec = (us_ % kMicrosecondsPerSecond) * kNanosecondsPerMicrosecond; in ToTimespec()324 tv.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimeval()325 tv.tv_usec = us_ % kMicrosecondsPerSecond; in ToTimeval()352 return static_cast<double>(us_) / kMicrosecondsPerMillisecond; in ToJsTime()
256 Time() : us_(0) { in Time()261 return us_ == 0; in is_null()266 return us_ == std::numeric_limits<int64>::max(); in is_max()398 return us_; in ToInternalValue()415 us_ = other.us_;421 return TimeDelta(us_ - other.us_);426 us_ += delta.delta_;430 us_ -= delta.delta_;436 return Time(us_ + delta.delta_);439 return Time(us_ - delta.delta_);[all …]
120 if (std::numeric_limits<int64>::max() - kTimeTToMicrosecondsOffset <= us_) { in ToTimeT()122 "value " << us_ << " to time_t."; in ToTimeT()125 return (us_ - kTimeTToMicrosecondsOffset) / kMicrosecondsPerSecond; in ToTimeT()146 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToDoubleT()178 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToJsTime()191 return ((us_ - kTimeTToMicrosecondsOffset) / in ToJavaTime()198 time.us_ = kTimeTToMicrosecondsOffset; in UnixEpoch()
153 return (static_cast<CFAbsoluteTime>(us_ - kWindowsEpochDeltaMicroseconds) / in ToCFAbsoluteTime()185 int64 microsecond = us_ % kMicrosecondsPerSecond; in Explode()188 CFAbsoluteTime seconds = ((us_ - microsecond) / kMicrosecondsPerSecond) - in Explode()
162 MicrosecondsToFileTime(us_, &utc_ft); in ToFileTime()241 if (us_ < 0LL) { in Explode()249 MicrosecondsToFileTime(us_, &utc_ft); in Explode()
165 int64 microseconds = us_ - kWindowsEpochDeltaMicroseconds; in Explode()380 int64 us = us_ - kTimeTToMicrosecondsOffset; in ToTimeVal()