summaryrefslogtreecommitdiff
path: root/deps/v8/src/date.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/date.h')
-rw-r--r--deps/v8/src/date.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/v8/src/date.h b/deps/v8/src/date.h
index 813e5b83c0..0a3e91beb2 100644
--- a/deps/v8/src/date.h
+++ b/deps/v8/src/date.h
@@ -18,6 +18,7 @@ class DateCache {
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;
// The largest time that can be passed to OS date-time library functions.
static const int kMaxEpochTimeInSec = kMaxInt;
@@ -30,8 +31,7 @@ class DateCache {
// Conservative upper bound on time that can be stored in JSDate
// before UTC conversion.
- static const int64_t kMaxTimeBeforeUTCInMs =
- kMaxTimeInMs + 10 * kMsPerDay;
+ static const int64_t kMaxTimeBeforeUTCInMs = kMaxTimeInMs + kMsPerMonth;
// Sentinel that denotes an invalid local offset.
static const int kInvalidLocalOffsetInMs = kMaxInt;
@@ -190,6 +190,10 @@ class DateCache {
// the first day of the given month in the given year.
int DaysFromYearMonth(int year, int month);
+ // Breaks down the time value.
+ void BreakDownTime(int64_t time_ms, int* year, int* month, int* day,
+ int* weekday, int* hour, int* min, int* sec, int* ms);
+
// Cache stamp is used for invalidating caches in JSDate.
// We increment the stamp each time when the timezone information changes.
// JSDate objects perform stamp check and invalidate their caches if