Home
last modified time | relevance | path

Searched refs:time_sec (Results 1 – 3 of 3) sorted by relevance

/external/v8/src/
Ddate.cc202 void DateCache::ExtendTheAfterSegment(int time_sec, int offset_ms) { in ExtendTheAfterSegment() argument
204 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() local
238 if (before_->start_sec <= time_sec && in DaylightSavingsOffsetInMs()
239 time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
245 ProbeDST(time_sec); in DaylightSavingsOffsetInMs()
[all …]
Ddate.h183 virtual int GetDaylightSavingsOffsetFromOS(int64_t time_sec) { in GetDaylightSavingsOffsetFromOS() argument
184 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);
/external/v8/test/cctest/
Dtest-date.cc46 virtual int GetDaylightSavingsOffsetFromOS(int64_t time_sec) { in GetDaylightSavingsOffsetFromOS() argument
47 int days = DaysFromTime(time_sec * 1000); in GetDaylightSavingsOffsetFromOS()
48 int time_in_day_sec = TimeInDay(time_sec * 1000, days) / 1000; in GetDaylightSavingsOffsetFromOS()