W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2008

[whatwg] input=datetime and unixtime?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 31 Jul 2008 00:46:50 +0200
Message-ID: <4890EF5A.7000600@lachy.id.au>
Tab Atkins Jr. wrote:
> I did some searching through the archives, but didn't find anything at all
> that talked about this.  Out of curiousity, was there a reason that datetime
> doesn't store/send it's value as a unix timestamp?

IIRC, one reason is or better graceful degradation in legacy user agents 
that don't support the datetime controls, and where no JavaScript based 
alternative available.  In such cases, it's easier to get the user to 
enter a date in the format like YYYY-MM-DD, than it is to have them 
calculate and enter the number of milliseconds since the epoch.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Wednesday, 30 July 2008 15:46:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC