DateImplementationData.h 1.1 KB

1234567891011121314151617181920212223242526
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. // static DateImplementation data shared by runtime and hybrid debugging
  6. namespace Js {
  7. const double DateImplementation::ktvMax = +8.64e15;
  8. const double DateImplementation::ktvMin = -8.64e15;
  9. // Prototype years. These are years with Jan 1 on the
  10. // corresponding weekday.
  11. const int DateImplementation::g_mpytyear[14] =
  12. {
  13. 1995, 1979, 1991, 1975, 1987, 1971, 1983, // non-leap years
  14. 1984, 1996, 1980, 1992, 1976, 1988, 1972, // leap years
  15. };
  16. const int DateImplementation::g_mpytyearpost2006[14] =
  17. {
  18. 2023, 2035, 2019, 2031, 2015, 2027, 2011, // non-leap years
  19. 2012, 2024, 2036, 2020, 2032, 2016, 2028 // leap years
  20. };
  21. } // namespace Js