W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2011

[whatwg] proposal: extend <time> to markup durations

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 7 Dec 2011 00:10:23 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1112062357060.9078@ps20323.dreamhostps.com>
On Thu, 14 Jul 2011, Tantek ?~Gelik wrote:
> Some in the microformats community have been making good use of the 
> <time> element, e.g. for publishing hCalendar, and implementing 
> consuming/converting hCalendar [1] with good success.
> It would be great if the <time> element could support expressing 
> durations as well for the use cases as needed by the hMedia and hAudio 
> microformats as well as other use-cases (Wikipedia, IMDB).

I've since added this feature. It supports both the hard-to-read but 
pretty well-established ISO8601 duration syntax:


...and a slightly easier-to-read syntax:

   <time>4h 18m 3s</time>

Earlier in this thread I suggested maybe dropping <time> altogether, with 
a more generic replacement. Having tried that and gotten lots of negative 
feedback on the topic, I've since changed the spec again and we now have 
both a generic element for machine-readable data, <data>, as well as an 
element specifically for time-related machine-readable data, <time>.

The old <time> element, with its rendering rules and DOM API, are gone.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 6 December 2011 16:10:23 UTC

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