W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: Dates in HTML 5

From: Robert Burns <rob@robburns.com>
Date: Thu, 28 Jun 2007 13:56:30 -0500
Message-Id: <6C7E87A1-AA90-48B7-86AC-8D9A1476CA01@robburns.com>
Cc: public-html@w3.org
To: Thomas Broyer <t.broyer@gmail.com>


On Jun 28, 2007, at 1:36 PM, Thomas Broyer wrote:

>
> 2007/6/27, Rob Marshall:
>>
>> I don't think it's safe to change document.lastModified, but I agree
>> it's a terrible format. If it's still useful, perhaps a new attribute
>> could be added that returns the last modified date as a DOMTimeStamp?
>
> On the other hand, Opera 9 does not follow the format described in  
> the spec.
>
> Opera 9 (9.21):
> document.lastModified
>    string
>    January 1, 1970 GMT
> toString
>    Thu, 28 Jun 2007 20:19:42 GMT+0200
> toUTCString
>    Thu, 28 Jun 2007 18:19:42 GMT
> toLocaleString
>    28/06/2007 20:19:42
>

To me the toLaocaleString should format the date in appropriate order  
for the locale settings.
Received on Thursday, 28 June 2007 18:56:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:01 GMT