J
Jorge
--> "2010-03-04T16:05:56.319Z"
lovely
lovely
--> "2010-03-04T16:05:56.319Z"
lovely![]()
Please read the FAQ section 1.3, the 'How to Ask a Question' paragraph,
second line. Then tell us what you think of it.
--> "2010-03-04T16:05:56.319Z"
Dr said:[...] Jorge posted:--> "2010-03-04T16:05:56.319Z"
But with which browser or other agent? None of mine seem to show
fractional seconds.
My Cr4 & SF4 have toJSON & toISOString
My IE8 has toJSON but not toISOString
My FF3.0 & Op10.10 have neither.
In comp.lang.javascript message <c1814492-916b-412f-8cee-1c6aa1f1e6a5@33
g2000yqj.googlegroups.com>, Thu, 4 Mar 2010 08:06:37, Jorge
But with which browser or other agent? None of mine seem to show
fractional seconds.
Dr said:[...] Jorge posted:--> "2010-03-04T16:05:56.319Z"
But with which browser or other agent? None of mine seem to show
fractional seconds.
My Cr4 & SF4 have toJSON & toISOString
My IE8 has toJSON but not toISOString
My FF3.0 & Op10.10 have neither.
I am getting a value in that format in Iceweasel 3.5.8 (Gecko 1.9.1.8).
However, those who have read ES 5, section 15.9.5.44, would probably use
(new Date()).toISOString()
instead of
(new Date()).toJSON()
Dr said:Thomas 'PointedEars' Lahn posted:Dr said:[...] Jorge posted:
--> "2010-03-04T16:05:56.319Z"
But with which browser or other agent? None of mine seem to show
fractional seconds.
My Cr4 & SF4 have toJSON & toISOString
My IE8 has toJSON but not toISOString
My FF3.0 & Op10.10 have neither.
I am getting a value in that format in Iceweasel 3.5.8 (Gecko 1.9.1.8).
However, those who have read ES 5, section 15.9.5.44, would probably use
(new Date()).toISOString()
instead of
(new Date()).toJSON()
The string is compliant with a small subset of ISO 8601:2004, which you
should have read. ISO 8601 is a small subset of ISO.
The string is probably be compliant with all or nearly all of the
applicable parts of the JSON spec.
Therefore the JSON name is better.
It should be obvious that the method of Date instances having `ISO' in
its identifier would pertain to one of the time formats specified in the
corresponding ISO standard.
You cannot be serious advocating the use of a less efficient wrapper, there
needless, wrapper, only because its "name" would be "better" by some rather
weird interpretation of the meaning of method identifiers.
Dr said:Thomas 'PointedEars' Lahn posted:
By using "toISOString" we now have uncertainty, and no consistent means
of discriminating between the various date and time formats in 8601.
It needs to be "toISO8601ExtendedCalendarDateAndTime", IIRC, for the
present code.
[...]
Remember, the authors of ECMA 262-5 are, like yourself, not persons with
any real breadth of knowledge. It seems improbable that many, if any,
of them have actually read ISO 8601.
Gobbledegook.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.