Year number (Time calculation)

A date and time algorithm defined as part of ECMAScript.

Availability:

ECMAScript edition - 2
Property/method value type:Number primitive

In calculating year numbers, ECMA compliant implementations should use an extrapolated Gregorian system. This allows for leap years and non-leap years at the turn of the century, three out of every four.

There are various calculations related to year numbers. Refer to the various example calculations:

See also:Broken down time, Days in year, In leap year, Time from year, Year from time

Cross-references:

ECMA 262 edition 2 - section - 15.9.1.3

ECMA 262 edition 3 - section - 15.9.1.3