Leap seconds for Date.parse

Allen Wirfs-Brock Allen.Wirfs-Brock at microsoft.com
Mon Jul 19 10:53:47 PDT 2010

(I've forward this to es5-discuss and deleted es-discuss from the to line)

> -----Original Message-----
> From: es-discuss-bounces at mozilla.org [mailto:es-discuss-
> bounces at mozilla.org] On Behalf Of Peter van der Zee
> Sent: Monday, July 19, 2010 9:00 AM
> To: es-discuss at mozilla.org
> Subject: Leap seconds for Date.parse
> While explicitly says leap seconds are ignored by ECMAscript, the ISO
> 8601 timestamp format allows them.
> (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 before the notes says to reject all dates it cannot
> parse.
> Now my question is, should "T23:59:60" be a valid timestamp as parsed by
> Date.parse?
> 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.
> - peter
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

More information about the es-discuss mailing list