forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDateImplementationData.h
More file actions
26 lines (21 loc) · 1.05 KB
/
Copy pathDateImplementationData.h
File metadata and controls
26 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
// static DateImplementation data shared by runtime and hybrid debugging
namespace Js {
const double DateImplementation::ktvMax = +8.64e15;
const double DateImplementation::ktvMin = -8.64e15;
// Prototype years. These are years with Jan 1 on the
// corresponding weekday.
const int DateImplementation::g_mpytyear[14] =
{
1995, 1979, 1991, 1975, 1987, 1971, 1983, // non-leap years
1984, 1996, 1980, 1992, 1976, 1988, 1972, // leap years
};
const int DateImplementation::g_mpytyearpost2006[14] =
{
2023, 2035, 2019, 2031, 2015, 2027, 2011, // non-leap years
2012, 2024, 2036, 2020, 2032, 2016, 2028 // leap years
};
} // namespace Js