Date.prototype.toISOString and Invalid Date

John Cowan cowan at ccil.org
Wed Jun 10 11:54:20 PDT 2009


Garrett Smith scripsit:

> ISO 8601 is intended for human consumption.

It's usable by humans, but it's also machine-parseable, particularly
if the usual RFC 3339 subset is being used, as I suppose.

> It would be useful for toISOString to allow the caller to provide a format.

That's overkill, I'd say.

-- 
And it was said that ever after, if any                 John Cowan
man looked in that Stone, unless he had a               cowan at ccil.org
great strength of will to turn it to other              http://ccil.org/~cowan
purpose, he saw only two aged hands withering
in flame.   --"The Pyre of Denethor"


More information about the es5-discuss mailing list