W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2004

[whatwg] date/time types

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 11 Jun 2004 20:21:43 +0200
Message-ID: <40C9F837.7060303@inkedblade.net>
Dean Edwards wrote:

> would it be useful to extend the "precision" attribute to cover 
> dates/times? this might eliminate the need for some of the extra input 
> types.

The precision for time goes in both ways: less accurate and less absolute.
And there are two kinds: point in time (i.e. when), and amount of time.
(It's less confusing in Chinese, but we're conversing in English. *shrug*)

Point in time:

  Absolute times:

   year-month-day-hour-minute-second       Equinox
   year-month-day-hour-minute              Plane is scheduled to arrive
   year-month-day-hour                     Desired departure time, hour precision
   year-month-day-(morning|afternoon|evening...) Desired departure time
   year-month-day                          Date of birth
   year-month                              Graduation date
   year-week                               not used in my locale :)
   year -> number

  Scoped times:
   month-day                               Holiday
   weekday-time                            Weekly teleconference
   weekday -> select
   time                                    Daily backup
   time, no zoneinfo                       Hour of sunrise, lunch hour

   weekday-time would work fine with a select box for the weekday, I think

Amount of time:
   hour-minute                             Preparation time
   minutes -> number
   minute-second                           Mile run time
   seconds -> number

~fantasai

-- 
http://fantasai.inkedblade.net/contact
Received on Friday, 11 June 2004 11:21:43 UTC

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