V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::DateCache Class Reference

Public Member Functions

void ResetDateCache ()
 
int Weekday (int days)
 
bool IsLeap (int year)
 
int LocalOffsetInMs (int64_t time, bool is_utc)
 
const charLocalTimezone (int64_t time_ms)
 
int TimezoneOffset (int64_t time_ms)
 
int64_t ToLocal (int64_t time_ms)
 
int64_t ToUTC (int64_t time_ms)
 
int64_t EquivalentTime (int64_t time_ms)
 
int EquivalentYear (int year)
 
void YearMonthDayFromDays (int days, int *year, int *month, int *day)
 
int DaysFromYearMonth (int year, int month)
 
void BreakDownTime (int64_t time_ms, int *year, int *month, int *day, int *weekday, int *hour, int *min, int *sec, int *ms)
 
Smi stamp ()
 
void * stamp_address ()
 
virtual int GetDaylightSavingsOffsetFromOS (int64_t time_sec)
 
virtual int GetLocalOffsetFromOS (int64_t time_ms, bool is_utc)
 

Static Public Member Functions

static int DaysFromTime (int64_t time_ms)
 
static int TimeInDay (int64_t time_ms, int days)
 
static double TimeClip (double time)
 

Static Public Attributes

static const int kMsPerMin = 60 * 1000
 
static const int kSecPerDay = 24 * 60 * 60
 
static const int64_t kMsPerDay = kSecPerDay * 1000
 
static const int64_t kMsPerMonth = kMsPerDay * 30
 
static const int kMaxEpochTimeInSec = kMaxInt
 
static const int64_t kMaxEpochTimeInMs
 
static const int64_t kMaxTimeInMs
 
static const int64_t kMaxTimeBeforeUTCInMs = kMaxTimeInMs + kMsPerMonth
 
static const int kInvalidLocalOffsetInMs = kMaxInt
 
static const int kInvalidStamp = -1
 

Detailed Description

Definition at line 15 of file date.h.

Member Data Documentation

◆ kMaxEpochTimeInMs

const int64_t v8::internal::DateCache::kMaxEpochTimeInMs
static
Initial value:
=
static_cast<int64_t>(kMaxInt) * 1000

Definition at line 24 of file date.h.

◆ kMaxTimeInMs

const int64_t v8::internal::DateCache::kMaxTimeInMs
static
Initial value:
=
static_cast<int64_t>(864000000) * 10000000

Definition at line 28 of file date.h.


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