v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DateCacheMock Class Reference
Inheritance diagram for DateCacheMock:
Collaboration diagram for DateCacheMock:

Data Structures

struct  Rule
 

Public Member Functions

 DateCacheMock (int local_offset, Rule *rules, int rules_count)
 
- Public Member Functions inherited from DateCache
 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)
 
Smistamp ()
 
void * stamp_address ()
 

Protected Member Functions

virtual int GetDaylightSavingsOffsetFromOS (int64_t time_sec)
 
virtual int GetLocalOffsetFromOS ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DateCache
static int DaysFromTime (int64_t time_ms)
 
static int TimeInDay (int64_t time_ms, int days)
 
- Static Public Attributes inherited from DateCache
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
 

Detailed Description

Definition at line 36 of file test-date.cc.

Constructor & Destructor Documentation

DateCacheMock ( int  local_offset,
Rule rules,
int  rules_count 
)
inline

Definition at line 42 of file test-date.cc.

Member Function Documentation

virtual int GetDaylightSavingsOffsetFromOS ( int64_t  time_sec)
inlineprotectedvirtual

Reimplemented from DateCache.

Definition at line 46 of file test-date.cc.

References v8::internal::NULL, and DateCacheMock::Rule::offset_sec.

virtual int GetLocalOffsetFromOS ( )
inlineprotectedvirtual

Reimplemented from DateCache.

Definition at line 56 of file test-date.cc.


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