v8
3.14.5(node0.10.28)
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().
|
inlinestatic |
Definition at line 77 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 146 of file date.h.
References DateCache::DaysFromTime(), DateCache::DaysFromYearMonth(), DateCache::EquivalentYear(), DateCache::kMsPerDay, and DateCache::YearMonthDayFromDays().
Referenced by DateCache::LocalTimezone().
|
inline |
Definition at line 159 of file date.h.
References DateCache::DaysFromYearMonth(), DateCache::IsLeap(), and DateCache::Weekday().
Referenced by DateCache::EquivalentTime().
|
inlinevirtual |
Reimplemented in DateCacheMock.
Definition at line 183 of file date.h.
References OS::DaylightSavingsOffset().
|
inlinevirtual |
Reimplemented in DateCacheMock.
Definition at line 188 of file date.h.
References ASSERT, DateCache::kInvalidLocalOffsetInMs, and OS::LocalTimeOffset().
Referenced by DateCache::LocalOffsetInMs().
|
inline |
Definition at line 98 of file date.h.
Referenced by DateCache::EquivalentYear().
|
inline |
Definition at line 104 of file date.h.
References DateCache::GetLocalOffsetFromOS(), and DateCache::kInvalidLocalOffsetInMs.
Referenced by DateCache::ToLocal(), and DateCache::ToUTC().
|
inline |
Definition at line 112 of file date.h.
References DateCache::EquivalentTime(), DateCache::kMaxEpochTimeInMs, and OS::LocalTimezone().
void ResetDateCache | ( | ) |
Definition at line 51 of file date.cc.
References ASSERT, Smi::FromInt(), DateCache::kInvalidLocalOffsetInMs, DateCache::kInvalidStamp, Smi::kMaxValue, and Smi::value().
Referenced by DateCache::DateCache(), and Date::DateTimeConfigurationChangeNotification().
|
inlinestatic |
Definition at line 85 of file date.h.
References DateCache::kMsPerDay.
|
inline |
Definition at line 120 of file date.h.
References DateCache::kMsPerMin, and DateCache::ToLocal().
|
inline |
Definition at line 126 of file date.h.
References DateCache::LocalOffsetInMs().
Referenced by DateCache::TimezoneOffset().
|
inline |
Definition at line 131 of file date.h.
References DateCache::LocalOffsetInMs().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 92 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().