Export (0) Print
Expand All
Expand Minimize

2.1.36 [ECMA-262/5] Section 15.9.1.8, Daylight Saving Time Adjustment

V0036:

The specification states:

If the host environment provides functionality for determining daylight saving 
time, the implementation of ECMAScript is free to map the year in question to an 
equivalent year (same leap-year-ness and same starting week day for the year) for 
which the host environment provides daylight saving time information. The only 
restriction is that all equivalent years should produce the same result.

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

To determine adjustments for daylight savings time, equivalent years are mapped to the current year by using the following values.

Day of the week for January 1

0 (Sunday)

1 (Monday)

2 (Tuesday)

3 (Wednesday)

4 (Thursday)

5 (Friday)

6 (Saturday)

Non-leap years before 2007

1995

1979

1991

1975

1987

1971

1983

Leap years before 2007

1984

1996

1980

1992

1976

1988

1972

2007 and non-leap years after 2007

2023

2035

2019

2031

2015

2027

2011

Leap years after 2007

2012

2024

2036

2020

2032

2016

2028

Show:
© 2015 Microsoft