New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JP22: 20.3.1.1 Time Values and Time Range #195

Open
akr opened this Issue Nov 17, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@akr

akr commented Nov 17, 2015

In the section 20.3.1.1 Time Values and Time Range,
"approximately 285,616 years" should be changed to "approximately 285,426 years"

There are 97 leap years in the 400 year cycle of Gregorian Calendar.
(400_365+97)/400=365.2425 [days/year] # average number of days in a year
365.2425_86400000=31556952000 [ms/year] # average number of milliseconds in a year
9007199254740992 [ms] / 31556952000 [ms/year] = 285426.7818622341 [year]

It seems "285,616 years" doesn't consider leap years.

Also, the description of "20.3.1.16.1 Extended years describes" contains "285,426 years".

@anba

This comment has been minimized.

Show comment
Hide comment
@anba

anba Nov 17, 2015

Contributor

Also see https://bugs.ecmascript.org/show_bug.cgi?id=280 for other inconsistencies w.r.t. the date-time limits.

Contributor

anba commented Nov 17, 2015

Also see https://bugs.ecmascript.org/show_bug.cgi?id=280 for other inconsistencies w.r.t. the date-time limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment