v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <date.h>
Public Member Functions | |
DateCache () | |
virtual | ~DateCache () |
void | ResetDateCache () |
int | Weekday (int days) |
bool | IsLeap (int year) |
int | LocalOffsetInMs () |
const char * | LocalTimezone (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) |
Smi * | stamp () |
void * | stamp_address () |
virtual int | GetDaylightSavingsOffsetFromOS (int64_t time_sec) |
virtual int | GetLocalOffsetFromOS () |
Static Public Member Functions | |
static int | DaysFromTime (int64_t time_ms) |
static int | TimeInDay (int64_t time_ms, int days) |
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 int | kMaxEpochTimeInSec = kMaxInt |
static const int64_t | kMaxEpochTimeInMs |
static const int64_t | kMaxTimeInMs |
static const int64_t | kMaxTimeBeforeUTCInMs |
static const int | kInvalidLocalOffsetInMs = kMaxInt |
static const int | kInvalidStamp = -1 |
|
inline |
Definition at line 65 of file date.h.
References DateCache::ResetDateCache().
|
inlinevirtual |
Definition at line 69 of file date.h.
References OS::DisposeTimezoneCache(), and v8::internal::NULL.
|
inlinestatic |
Definition at line 80 of file date.h.
References DateCache::kMsPerDay.
Referenced by DateCache::EquivalentTime().
int DaysFromYearMonth | ( | int | year, |
int | month | ||
) |
Definition at line 158 of file date.cc.
References ASSERT.
Referenced by DateCache::EquivalentTime(), DateCache::EquivalentYear(), and DateCache::YearMonthDayFromDays().
|
inline |
Definition at line 149 of file date.h.
References DateCache::DaysFromTime(), DateCache::DaysFromYearMonth(), DateCache::EquivalentYear(), DateCache::kMsPerDay, and DateCache::YearMonthDayFromDays().
Referenced by DateCache::LocalTimezone().
|
inline |
Definition at line 162 of file date.h.
References DateCache::DaysFromYearMonth(), DateCache::IsLeap(), and DateCache::Weekday().
Referenced by DateCache::EquivalentTime().
|
inlinevirtual |
Reimplemented in DateCacheMock.
Definition at line 186 of file date.h.
References OS::DaylightSavingsOffset().
|
inlinevirtual |
Reimplemented in DateCacheMock.
Definition at line 191 of file date.h.
References ASSERT, DateCache::kInvalidLocalOffsetInMs, and OS::LocalTimeOffset().
Referenced by DateCache::LocalOffsetInMs().
|
inline |
Definition at line 101 of file date.h.
Referenced by DateCache::EquivalentYear().
|
inline |
Definition at line 107 of file date.h.
References DateCache::GetLocalOffsetFromOS(), and DateCache::kInvalidLocalOffsetInMs.
Referenced by DateCache::ToLocal(), and DateCache::ToUTC().
|
inline |
Definition at line 115 of file date.h.
References DateCache::EquivalentTime(), DateCache::kMaxEpochTimeInMs, and OS::LocalTimezone().
void ResetDateCache | ( | ) |
Definition at line 50 of file date.cc.
References ASSERT, OS::ClearTimezoneCache(), Smi::FromInt(), DateCache::kInvalidLocalOffsetInMs, DateCache::kInvalidStamp, Smi::kMaxValue, and Smi::value().
Referenced by DateCache::DateCache(), and Date::DateTimeConfigurationChangeNotification().
|
inlinestatic |
Definition at line 88 of file date.h.
References DateCache::kMsPerDay.
|
inline |
Definition at line 123 of file date.h.
References DateCache::kMsPerMin, and DateCache::ToLocal().
|
inline |
Definition at line 129 of file date.h.
References DateCache::LocalOffsetInMs().
Referenced by DateCache::TimezoneOffset().
|
inline |
Definition at line 134 of file date.h.
References DateCache::LocalOffsetInMs().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 95 of file date.h.
Referenced by DateCache::EquivalentYear().
void YearMonthDayFromDays | ( | int | days, |
int * | year, | ||
int * | month, | ||
int * | day | ||
) |
Definition at line 77 of file date.cc.
References ASSERT, and DateCache::DaysFromYearMonth().
Referenced by DateCache::EquivalentTime().
|
static |
Definition at line 60 of file date.h.
Referenced by DateCache::GetLocalOffsetFromOS(), DateCache::LocalOffsetInMs(), and DateCache::ResetDateCache().
|
static |
Definition at line 63 of file date.h.
Referenced by DateCache::ResetDateCache(), and JSDate::SetValue().
|
static |
|
static |
Definition at line 56 of file date.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 51 of file date.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 43 of file date.h.
Referenced by DateCache::DaysFromTime(), DateCache::EquivalentTime(), TEST(), and DateCache::TimeInDay().
|
static |
Definition at line 41 of file date.h.
Referenced by DateCache::TimezoneOffset().