• Home
  • Raw
  • Download

Lines Matching refs:time_sec

277 void DateCache::ExtendTheAfterSegment(int time_sec, int offset_ms) {  in ExtendTheAfterSegment()  argument
279 after_->start_sec - kDefaultDSTDeltaInSec <= time_sec && in ExtendTheAfterSegment()
280 time_sec <= after_->end_sec) { in ExtendTheAfterSegment()
282 after_->start_sec = time_sec; in ExtendTheAfterSegment()
289 after_->start_sec = time_sec; in ExtendTheAfterSegment()
290 after_->end_sec = time_sec; in ExtendTheAfterSegment()
297 int time_sec = (time_ms >= 0 && time_ms <= kMaxEpochTimeInMs) in DaylightSavingsOffsetInMs() local
312 if (before_->start_sec <= time_sec && time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
318 ProbeDST(time_sec); in DaylightSavingsOffsetInMs()
320 DCHECK(InvalidSegment(before_) || before_->start_sec <= time_sec); in DaylightSavingsOffsetInMs()
321 DCHECK(InvalidSegment(after_) || time_sec < after_->start_sec); in DaylightSavingsOffsetInMs()
325 before_->start_sec = time_sec; in DaylightSavingsOffsetInMs()
326 before_->end_sec = time_sec; in DaylightSavingsOffsetInMs()
327 before_->offset_ms = GetDaylightSavingsOffsetFromOS(time_sec); in DaylightSavingsOffsetInMs()
332 if (time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
338 if (time_sec - kDefaultDSTDeltaInSec > before_->end_sec) { in DaylightSavingsOffsetInMs()
341 int offset_ms = GetDaylightSavingsOffsetFromOS(time_sec); in DaylightSavingsOffsetInMs()
342 ExtendTheAfterSegment(time_sec, offset_ms); in DaylightSavingsOffsetInMs()
384 int middle_sec = (i == 0) ? time_sec : before_->end_sec + delta / 2; in DaylightSavingsOffsetInMs()
388 if (time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
394 if (time_sec >= after_->start_sec) { in DaylightSavingsOffsetInMs()
406 void DateCache::ProbeDST(int time_sec) { in ProbeDST() argument
412 if (dst_[i].start_sec <= time_sec) { in ProbeDST()
416 } else if (time_sec < dst_[i].end_sec) { in ProbeDST()
437 DCHECK(InvalidSegment(before) || before->start_sec <= time_sec); in ProbeDST()
438 DCHECK(InvalidSegment(after) || time_sec < after->start_sec); in ProbeDST()