Searched refs:time_sec (Results 1 – 3 of 3) sorted by relevance
202 void DateCache::ExtendTheAfterSegment(int time_sec, int offset_ms) { in ExtendTheAfterSegment() argument204 after_->start_sec <= time_sec + kDefaultDSTDeltaInSec && in ExtendTheAfterSegment()205 time_sec <= after_->end_sec) { in ExtendTheAfterSegment()207 after_->start_sec = time_sec; in ExtendTheAfterSegment()214 after_->start_sec = time_sec; in ExtendTheAfterSegment()215 after_->end_sec = time_sec; in ExtendTheAfterSegment()223 int time_sec = (time_ms >= 0 && time_ms <= kMaxEpochTimeInMs) in DaylightSavingsOffsetInMs() local238 if (before_->start_sec <= time_sec && in DaylightSavingsOffsetInMs()239 time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()245 ProbeDST(time_sec); in DaylightSavingsOffsetInMs()[all …]
183 virtual int GetDaylightSavingsOffsetFromOS(int64_t time_sec) { in GetDaylightSavingsOffsetFromOS() argument184 double time_ms = static_cast<double>(time_sec * 1000); in GetDaylightSavingsOffsetFromOS()223 void ProbeDST(int time_sec);231 inline void ExtendTheAfterSegment(int time_sec, int offset_ms);
46 virtual int GetDaylightSavingsOffsetFromOS(int64_t time_sec) { in GetDaylightSavingsOffsetFromOS() argument47 int days = DaysFromTime(time_sec * 1000); in GetDaylightSavingsOffsetFromOS()48 int time_in_day_sec = TimeInDay(time_sec * 1000, days) / 1000; in GetDaylightSavingsOffsetFromOS()