[whatwg] simple numbers

Fabien Meghazi agr at amigrave.com
Tue Dec 11 04:04:24 PST 2007

On Dec 11, 2007 12:28 PM, Andy Mabbett <andy at pigsonthewing.org.uk> wrote:
> > <tag type="datetime" format="yyyy/mm/dd HH:MM">Tue, 11 Dec 2007
> > 10:57:14 GMT</tag>
> Neither of those encodes the date - specifically, the month - in a
> machine-readable format. We cannot expect all UAs to know every language
> variant and local abbreviation. If your model /were/ adopted, we would
> need a value attribute, which - in the case of type="datetime" - takes an
> ISO date-time, like:
>   value="2007-12-11T10:57:14Z"

Yeah of course this was an example. The datetime format whithin the
tag would be to define. I just took the representation of GMT date in
javascript but of course the goal would be to use a format that would
be readable for everyone in any language because it would be displayed
as is in browsers not supporting the tag. And of course the best
format would be the international format as you mentioned. Anyway, for
backward compatibility sake, I would say that we need a format human
readable, and the T & Z letters make it hard to read, so I think it
would be better to get rid of them like this :

<tag type="date">2007-12-11 10:57:14</tag>

Would render 2007-12-11 10:57:14  if tag is not supported

If tag is supported, the formating will occur according to the system

Fabien Meghazi

Website: http://www.amigrave.com
Email: agr at amigrave.com
IM: amigrave at gmail.com

More information about the whatwg mailing list