Leap seconds for Date.parse
Peter van der Zee
ecma at qfox.nl
Mon Jul 19 09:00:21 PDT 2010
While 184.108.40.206 explicitly says leap seconds are ignored by ECMAscript, the ISO
8601 timestamp format allows them.
220.127.116.11 (used by Date.parse) does dictate ranges for months and dates (days of
month), but they don't specify the range for hours, minutes and (milli)seconds
(although a note says 00 is the same as 24, fine). On the other hand, "the
number of x passed since y" can be interpreted as a range. But does this
interpretation come through the viewport of ECMAscript (ignoring leap seconds)
or the real world.
The last paragraph in 18.104.22.168 before the notes says to reject all dates it
Now my question is, should "T23:59:60" be a valid timestamp as parsed by
Which basically comes down to the question whether Date.parse should only parse
dates Ecmascript can produce itself or dates ISO 8601 could produce. If up in
the air, my vote goes to allow leap second notation. The current Firefox
implementation (for example) seems to reject it.
More information about the es-discuss