Year number (Time calculation)

A date and time algorithm defined as part of ECMAScript.


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


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -