Re: json date format 2006-12-03T13:56:21
- --- In email@example.com, "Peter Michaux" <petermichaux@...>
> On 1/6/07, Douglas Crockford <douglas@...> wrote:
> > > Douglas, is there a particular reason for not including
> > in json.js?But
> > You have the source, you can put them in any time you want to.
> > first, let me ask you a question: How confident that yoursystem's
> > clock has millisecond accuracy? And that the latency of the OS +time it
> > is delivered to your application? How meaningful will themilliseconds
> > be when you put them on the wire and send them to your server,whose
> > clock is not in sync with yours? Milliseconds are a waste oftime.
> A date object is not necessarily constructed with no arguments
> the Date constructor. It could very well be that in someapplications
> the construction of the Date object could use date data from a userThe date object may be historical data that truly is millisecond-
> input which has very accurate and critical milliseconds information
> from another very accurate system.
accurate. The object does not have to be constructed when the
dataset is created or by the server that is delivering the dataset.
I more likely will have been created long before, with many date
objects that do need this level of accuracy.
I can see no reason to not to include milliseconds, and many reasons
to keep them.