Daylight savings time adjustment (Definition)

An adjustment to the local time value.

Availability:

ECMAScript edition - 2

Daylight savings time is the practice of shifting the settings of your clock during the Summer or Winter months to move some daylight time from the morning to the evening. The nature of this shift is dependent on locality and cultural issues. The time may be shifted in the Summer relative to standard time or it may be shifted in the Winter. In the UK, during the Winter, time is shifted backwards by an hour. In the USA, clocks are shifted forwards in the Summer.

An ECMA compliant implementation is expected to be able to determine the correct daylight savings time algorithm.

The algorithm is used to determine the Daylight Savings Time Adjustment value (known internally as DaylightSavingTA). This value is measured in milliseconds and must depend only on the following factors:

The ECMAScript implementation should decide whether daylight saving time would be in effect according to the currently available algorithm. Historically, daylight saving time algorithms may be different according to local political decisions and it would be too complicated trying to take that into account.

It is possible that the underling host environment provides some daylight savings time algorithm support and the standard allows that this can be used if it is available.

The standard does not specify any particular algorithm. It just mandates that the algorithm should only rely on a restricted sub-set of information.

Warnings:

See also:Broken down time, Calendar time, Date and time, Local time, Local time zone adjustment, Universal coordinated time

Cross-references:

ECMA 262 edition 2 - section - 15.9.1.8

ECMA 262 edition 3 - section - 15.9.1.8