v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::TimezoneCache Class Referenceabstract

#include <timezone-cache.h>

Inheritance diagram for v8::base::TimezoneCache:
Collaboration diagram for v8::base::TimezoneCache:

Public Types

enum class  TimeZoneDetection { kSkip , kRedetect }
 

Public Member Functions

virtual const char * LocalTimezone (double time_ms)=0
 
virtual double DaylightSavingsOffset (double time_ms)=0
 
virtual double LocalTimeOffset (double time_ms, bool is_utc)=0
 
virtual void Clear (TimeZoneDetection time_zone_detection)=0
 
virtual ~TimezoneCache ()=default
 

Detailed Description

Definition at line 11 of file timezone-cache.h.

Member Enumeration Documentation

◆ TimeZoneDetection

Time zone redetection indicator for Clear function.

kSkip indicates host time zone doesn't have to be redetected. kRedetect indicates host time zone should be redetected, and used to set the default time zone.

The host time zone detection may require file system access or similar operations unlikely to be available inside a sandbox. If v8 is run inside a sandbox, the host time zone has to be detected outside the sandbox separately.

Enumerator
kSkip 
kRedetect 

Definition at line 38 of file timezone-cache.h.

Constructor & Destructor Documentation

◆ ~TimezoneCache()

virtual v8::base::TimezoneCache::~TimezoneCache ( )
virtualdefault

Member Function Documentation

◆ Clear()

virtual void v8::base::TimezoneCache::Clear ( TimeZoneDetection time_zone_detection)
pure virtual

Implemented in v8::base::PosixTimezoneCache, v8::base::StarboardTimezoneCache, v8::base::WindowsTimezoneCache, and v8::internal::ICUTimezoneCache.

Here is the caller graph for this function:

◆ DaylightSavingsOffset()

virtual double v8::base::TimezoneCache::DaylightSavingsOffset ( double time_ms)
pure virtual

◆ LocalTimeOffset()

virtual double v8::base::TimezoneCache::LocalTimeOffset ( double time_ms,
bool is_utc )
pure virtual

Implemented in v8::base::AIXTimezoneCache, v8::base::CygwinTimezoneCache, v8::base::PosixDefaultTimezoneCache, v8::base::SolarisTimezoneCache, v8::base::StarboardDefaultTimezoneCache, v8::base::WindowsTimezoneCache, v8::base::ZOSTimezoneCache, and v8::internal::ICUTimezoneCache.

Here is the caller graph for this function:

◆ LocalTimezone()


The documentation for this class was generated from the following file: