W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Please consider allowing the <time> element to accept coarser granularity dates

From: Tantek Çelik <tantek@cs.stanford.edu>
Date: Sat, 7 Aug 2010 02:25:53 -0700
Message-ID: <AANLkTi=e7-=gb7C1xbZd3seMhmgc=ney29w0S_10yrjt@mail.gmail.com>
Summary: the new <time> element is very useful for absolute dates and
times, but omits several useful granularity levels, in particular for
dates.

The following additional date granularities would be useful, and are
fairly straightforward to incorporate into the spec (and
implementations):

* year only: YYYY
* year-month only:  YYYY-MM (also corresponds to output form of input
type=month)
* year-week only: YYYY-WNN (also corresponds to output form of input type=week)
* month-day only: --MM-DD (common birthdays without year use case)

More details, use-cases, research here:
http://wiki.whatwg.org/wiki/Time#Date_granularity

I encourage fellow web authors and browser implementers to add their
opinions/comments to that wiki page section.

Note that there are additional proposals on that page - I'm sending
one email per proposal (or strongly related set of proposals) to
better track them separately. Feel free to read through and comment on
other proposals on the page as well.

Thanks!

Tantek

-- 
http://tantek.com/ - I made an HTML5 tutorial! http://tantek.com/html5
Received on Saturday, 7 August 2010 02:25:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:59 UTC