W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

Re: DOMTimeStamp interface not defined in L3 events...

From: Jacob Rossi <rossi@gatech.edu>
Date: Wed, 30 Sep 2009 18:43:47 -0400
Message-ID: <b1dbfad70909301543m2dc8ddcav94fea0d7d32fb07e@mail.gmail.com>
To: travil@microsoft.com, Doug Schepers <schepers@w3.org>
Cc: www-dom@w3.org
This is HTML5 definition of a "valid global date and time string" which is a
string:

http://dev.w3.org/html5/spec/Overview.html#valid-global-date-and-time-string

It's very similar to what the ISO8601 Date String format (see the W3C Note:
datetime, http://www.w3.org/TR/NOTE-datetime)

In JavaScript code on the client side, you often are working with date
objects. So this format is more difficult to work with because (I believe)
you have to write a function to parse it into a date object.

However, imho, to transfer to the server side, you generally want the above
mentioned date/time string format. It's compatible with a lot of server side
technologies and databases.

I think it would be great if both formats were available. Or it would be
nice if JavaScript had a built in method to convert such strings into date
objects.

--Jacob
Received on Wednesday, 30 September 2009 22:44:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:03 GMT