<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.whatwg.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eatyourgreens</id>
	<title>WHATWG Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.whatwg.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eatyourgreens"/>
	<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/wiki/Special:Contributions/Eatyourgreens"/>
	<updated>2026-04-05T13:26:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5166</id>
		<title>Time element</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5166"/>
		<updated>2010-08-05T10:47:08Z</updated>

		<summary type="html">&lt;p&gt;Eatyourgreens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Research, data, use cases, issues, and enhancements related to the [http://www.w3.org/TR/html5/text-level-semantics.html#the-time-element HTML5 &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; element].&lt;br /&gt;
&lt;br /&gt;
== impedance match new date time inputs ==&lt;br /&gt;
The time element should be able to represent every granularity of times and dates that the new date time inputs allow. In particular:&lt;br /&gt;
&lt;br /&gt;
* input type=&amp;quot;date&amp;quot; - &amp;amp;lt;time&amp;amp;gt;YYYY-MM-DD&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;datetime&amp;quot; - &amp;amp;lt;time&amp;amp;gt;YYYY-MM-DDTHH:MM:SS&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;month&amp;quot; - not supported in current time element&lt;br /&gt;
* input type=&amp;quot;week&amp;quot; - not supported in current time element&lt;br /&gt;
* input type=&amp;quot;time&amp;quot; - &amp;amp;lt;time&amp;amp;gt;HH:MM:SS&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;datetime-local&amp;quot; - &amp;amp;lt;time&amp;amp;gt;HH:MM:SS-ZZ:YY&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
== year only ==&lt;br /&gt;
The time element should accept just a year.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:YYYY&lt;br /&gt;
;use case research&lt;br /&gt;
:http://microformats.org/wiki/birthday-examples#year_only&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Faruk]] (per [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7145 Bug 7145 - Valid date strings should accept ambiguous inputs, like &amp;quot;2009&amp;quot; or &amp;quot;2007-01&amp;quot;]) One example is the very common archive view found on most blogs, which contain distinct links or headers for each year, each month per year, and often each date within a chosen or highlighted month. Currently, the &amp;lt;code&amp;gt;&amp;amp;lt;time&amp;amp;gt;&amp;lt;/code&amp;gt; element only allows for &amp;lt;code&amp;gt;datetime&amp;lt;/code&amp;gt; values as precise as a specific day, e.g. YYYY-MM-DD.&lt;br /&gt;
* -1 [[Hixie]] - &amp;quot;Without clear use cases, I don&#039;t intend to change the spec here.&amp;quot; (ibid)&lt;br /&gt;
* +1 [[Tantek]] (per [http://www.zeldman.com/superfriends/guide/#time HTML5 Super Friends Technical Details: time element])&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV &amp;amp; EDTF - see external links)&lt;br /&gt;
* +1 [[User:Philipj|Philip Jägenstedt]] - for marking up [http://musicbrainz.org/release/aa82c130-c734-4d9c-b06a-5bba9b44295d.html release dates on e.g. MusicBrainz] where the date is given as YYYY, YYYY-MM or YYYY-MM-DD.&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== year month only  ==&lt;br /&gt;
The time element should accept just a year and a month.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:YYYY-MM&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Faruk]] (per [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7145 Bug 7145 - Valid date strings should accept ambiguous inputs, like &amp;quot;2009&amp;quot; or &amp;quot;2007-01&amp;quot;]) One example is the very common archive view found on most blogs, which contain distinct links or headers for each year, each month per year, and often each date within a chosen or highlighted month. Currently, the &amp;lt;code&amp;gt;&amp;amp;lt;time&amp;amp;gt;&amp;lt;/code&amp;gt; element only allows for &amp;lt;code&amp;gt;datetime&amp;lt;/code&amp;gt; values as precise as a specific day, e.g. YYYY-MM-DD.&lt;br /&gt;
* -1 [[Hixie]] - &amp;quot;Without clear use cases, I don&#039;t intend to change the spec here.&amp;quot; (ibid)&lt;br /&gt;
* +1 [[User:Tantek|Tantek]] I think the blog archives use case (where blogs often link to their archives by a specific month and year) is sufficient to justify adding this capability to the time element. Content hosting sites like Flickr also list archives by specific year/month, e.g. see http://www.flickr.com/photos/tantek/archives/&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV &amp;amp; EDTF - see external links)&lt;br /&gt;
** [http://portablecontacts.net/draft-spec.html#anchor16 Portable contacts allows this] using a &amp;quot;0000&amp;quot; year value.&lt;br /&gt;
* +1 [[User:Philipj|Philip Jägenstedt]] - for marking up [http://musicbrainz.org/release/aa82c130-c734-4d9c-b06a-5bba9b44295d.html release dates on e.g. MusicBrainz] where the date is given as YYYY, YYYY-MM or YYYY-MM-DD.&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== month day only ==&lt;br /&gt;
The time element should accept just a month and a day.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:--MM-DD&lt;br /&gt;
;use case research&lt;br /&gt;
:http://microformats.org/wiki/birthday-examples#month_and_day_only&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Tantek]] (per [http://www.zeldman.com/superfriends/guide/#time HTML5 Super Friends Technical Details: time element])&lt;br /&gt;
* +1 &amp;quot;radiz&amp;quot; implied support for --MM-DD with the use case question: &amp;quot;How to use &amp;amp;lt;time&amp;amp;gt; with a date in astrology?&amp;quot; in the article http://html5doctor.com/your-questions-answered-6/&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per [http://www.ietf.org/mail-archive/web/vcarddav/current/msg00999.html use cases discussed in VCARDDAV] &amp;amp; EDTF, e.g. birthdays, wedding anniversaries - see external links)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Calendar ==&lt;br /&gt;
The time element should accept a calendar scale (CALSCALE; default is GREGORIAN) per (and to facilitate interoperability with) the [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 emergent vCard 4 specification], to allow for the the mark-up of non-Gregorian (e.g. Julian) dates, using some as-yet-to-be-formulated CALSCALE type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV, EDTF &amp;amp; TEI - see external links)&lt;br /&gt;
* …&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fuzzy dates ==&lt;br /&gt;
The time element should accept &#039;&#039;fuzzy&#039;&#039; (uncertain, approximate) dates and eras.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in &amp;quot;Extended Date Time Format&amp;quot; proposals &amp;amp; TEI - see external links)&lt;br /&gt;
* +1 [[User:eatyourgreens|Jim O&#039;Donnell]] (Dates such as &#039;circa 1910&#039; published on Flickr eg. [http://www.flickr.com/photos/nationalmaritimemuseum/4793356412/ The RNVR Training Ship &#039;Buzzard&#039;…] also [http://www.flickr.com/photos/nationalmaritimemuseum/archives/ a list of fuzzy dates for a set of photos].)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Specification ambiguities==&lt;br /&gt;
The specification requires that time be expressed as UTC (or another time zone with a specified offset from UTC). However, the representation of leap seconds is not specified. Further, the algorithms to convert between string and number are flawed, because the number is described as &amp;quot;number of milliseconds elapsed from midnight UTC on the morning of 1970-01-01&amp;quot; but the actual number of milliseconds includes all kinds of strange decisecond offsets during the period 1961-01-01 to 1972-01-01. Also, UTC did not exist before about 1960.&lt;br /&gt;
&lt;br /&gt;
Unix timekeeping has a long history of terrible definitions, and Unix notions of time should be totally rejected and expunged.&lt;br /&gt;
&lt;br /&gt;
==Choose different default date==&lt;br /&gt;
The statement that valueAsDate  IDL attribute should return the value 1970-01-01 plus the appropriate time when the time element contains no date creates a problem that there are likely to be time elements that explicitly contain that date.&lt;br /&gt;
&lt;br /&gt;
A better choice would be a value that is highly unlikely to be encountered, and would be implausible as an actual date in most applications, perhaps 9999-12-31.&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
=== Prior discussion ===&lt;br /&gt;
&lt;br /&gt;
* [http://pigsonthewing.org.uk/dates-and-coordinates-in-html5/ Dates and coordinates in HTML5] - blog post by [[User:Pigsonthewing|Andy Mabbett]]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-February/018639.html whatwg mailing list discussion of the above, Feb 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018685.html further whatwg mailing list discussion of the above, Mar 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018759.html Another mailing list thread Mar 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018888.html Spec editor&#039;s  response to the above threads and further discussion, late Mar 2009]&lt;br /&gt;
* [http://html5doctor.com/the-time-element/ HTML5 Doctor: The Time Element]&lt;br /&gt;
&lt;br /&gt;
=== Resources ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.loc.gov/standards/datetime/ Extended Date Time Format efforts] based at the USA&#039;s Library of Congress (Covers unspecific dates; date periods and non-Gregorian dates)&lt;br /&gt;
** [http://www.loc.gov/standards/datetime/proposals.html EDTF proposals] (use-cases)&lt;br /&gt;
* [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11 vCard Format Specification draft-ietf-vcarddav-vcardrev-11] (latest draft as at July 2010)&lt;br /&gt;
** [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-4.3 Section 4.3, date &amp;amp; time]&lt;br /&gt;
** [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 Section 5.7, CALSCALE] (specifies Gregorian or other (e.g. Julian) calendar)&lt;br /&gt;
*** [http://www.ietf.org/mail-archive/web/vcarddav/current/msg01307.html VCARDDAV discussion of CALSCALE]&lt;br /&gt;
* [http://www.tei-c.org/Guidelines/P4/html/ref-DATE.html TEI dates], widely used by archives and libraries to mark up texts, including non-Gregorian ISO8601 &amp;amp; uncertain/ approximate dates&lt;br /&gt;
** [http://www.tei-c.org/Guidelines/P4/html/CO.html#CONADA TEI dates+times]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 (Wikipedia article)]&lt;/div&gt;</summary>
		<author><name>Eatyourgreens</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5165</id>
		<title>Time element</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5165"/>
		<updated>2010-08-05T10:40:21Z</updated>

		<summary type="html">&lt;p&gt;Eatyourgreens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Research, data, use cases, issues, and enhancements related to the [http://www.w3.org/TR/html5/text-level-semantics.html#the-time-element HTML5 &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; element].&lt;br /&gt;
&lt;br /&gt;
== impedance match new date time inputs ==&lt;br /&gt;
The time element should be able to represent every granularity of times and dates that the new date time inputs allow. In particular:&lt;br /&gt;
&lt;br /&gt;
* input type=&amp;quot;date&amp;quot; - &amp;amp;lt;time&amp;amp;gt;YYYY-MM-DD&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;datetime&amp;quot; - &amp;amp;lt;time&amp;amp;gt;YYYY-MM-DDTHH:MM:SS&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;month&amp;quot; - not supported in current time element&lt;br /&gt;
* input type=&amp;quot;week&amp;quot; - not supported in current time element&lt;br /&gt;
* input type=&amp;quot;time&amp;quot; - &amp;amp;lt;time&amp;amp;gt;HH:MM:SS&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;datetime-local&amp;quot; - &amp;amp;lt;time&amp;amp;gt;HH:MM:SS-ZZ:YY&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
== year only ==&lt;br /&gt;
The time element should accept just a year.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:YYYY&lt;br /&gt;
;use case research&lt;br /&gt;
:http://microformats.org/wiki/birthday-examples#year_only&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Faruk]] (per [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7145 Bug 7145 - Valid date strings should accept ambiguous inputs, like &amp;quot;2009&amp;quot; or &amp;quot;2007-01&amp;quot;]) One example is the very common archive view found on most blogs, which contain distinct links or headers for each year, each month per year, and often each date within a chosen or highlighted month. Currently, the &amp;lt;code&amp;gt;&amp;amp;lt;time&amp;amp;gt;&amp;lt;/code&amp;gt; element only allows for &amp;lt;code&amp;gt;datetime&amp;lt;/code&amp;gt; values as precise as a specific day, e.g. YYYY-MM-DD.&lt;br /&gt;
* -1 [[Hixie]] - &amp;quot;Without clear use cases, I don&#039;t intend to change the spec here.&amp;quot; (ibid)&lt;br /&gt;
* +1 [[Tantek]] (per [http://www.zeldman.com/superfriends/guide/#time HTML5 Super Friends Technical Details: time element])&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV &amp;amp; EDTF - see external links)&lt;br /&gt;
* +1 [[User:Philipj|Philip Jägenstedt]] - for marking up [http://musicbrainz.org/release/aa82c130-c734-4d9c-b06a-5bba9b44295d.html release dates on e.g. MusicBrainz] where the date is given as YYYY, YYYY-MM or YYYY-MM-DD.&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== year month only  ==&lt;br /&gt;
The time element should accept just a year and a month.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:YYYY-MM&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Faruk]] (per [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7145 Bug 7145 - Valid date strings should accept ambiguous inputs, like &amp;quot;2009&amp;quot; or &amp;quot;2007-01&amp;quot;]) One example is the very common archive view found on most blogs, which contain distinct links or headers for each year, each month per year, and often each date within a chosen or highlighted month. Currently, the &amp;lt;code&amp;gt;&amp;amp;lt;time&amp;amp;gt;&amp;lt;/code&amp;gt; element only allows for &amp;lt;code&amp;gt;datetime&amp;lt;/code&amp;gt; values as precise as a specific day, e.g. YYYY-MM-DD.&lt;br /&gt;
* -1 [[Hixie]] - &amp;quot;Without clear use cases, I don&#039;t intend to change the spec here.&amp;quot; (ibid)&lt;br /&gt;
* +1 [[User:Tantek|Tantek]] I think the blog archives use case (where blogs often link to their archives by a specific month and year) is sufficient to justify adding this capability to the time element. Content hosting sites like Flickr also list archives by specific year/month, e.g. see http://www.flickr.com/photos/tantek/archives/&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV &amp;amp; EDTF - see external links)&lt;br /&gt;
** [http://portablecontacts.net/draft-spec.html#anchor16 Portable contacts allows this] using a &amp;quot;0000&amp;quot; year value.&lt;br /&gt;
* +1 [[User:Philipj|Philip Jägenstedt]] - for marking up [http://musicbrainz.org/release/aa82c130-c734-4d9c-b06a-5bba9b44295d.html release dates on e.g. MusicBrainz] where the date is given as YYYY, YYYY-MM or YYYY-MM-DD.&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== month day only ==&lt;br /&gt;
The time element should accept just a month and a day.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:--MM-DD&lt;br /&gt;
;use case research&lt;br /&gt;
:http://microformats.org/wiki/birthday-examples#month_and_day_only&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Tantek]] (per [http://www.zeldman.com/superfriends/guide/#time HTML5 Super Friends Technical Details: time element])&lt;br /&gt;
* +1 &amp;quot;radiz&amp;quot; implied support for --MM-DD with the use case question: &amp;quot;How to use &amp;amp;lt;time&amp;amp;gt; with a date in astrology?&amp;quot; in the article http://html5doctor.com/your-questions-answered-6/&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per [http://www.ietf.org/mail-archive/web/vcarddav/current/msg00999.html use cases discussed in VCARDDAV] &amp;amp; EDTF, e.g. birthdays, wedding anniversaries - see external links)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Calendar ==&lt;br /&gt;
The time element should accept a calendar scale (CALSCALE; default is GREGORIAN) per (and to facilitate interoperability with) the [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 emergent vCard 4 specification], to allow for the the mark-up of non-Gregorian (e.g. Julian) dates, using some as-yet-to-be-formulated CALSCALE type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV, EDTF &amp;amp; TEI - see external links)&lt;br /&gt;
* +1 [[User:eatyourgreens|Jim O&#039;Donnell]] (Dates such as &#039;circa 1910&#039; published on Flickr eg. [http://www.flickr.com/photos/nationalmaritimemuseum/4793356412/ The RNVR Training Ship &#039;Buzzard&#039;…])&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fuzzy dates ==&lt;br /&gt;
The time element should accept &#039;&#039;fuzzy&#039;&#039; (uncertain, approximate) dates and eras.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in &amp;quot;Extended Date Time Format&amp;quot; proposals &amp;amp; TEI - see external links)&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Specification ambiguities==&lt;br /&gt;
The specification requires that time be expressed as UTC (or another time zone with a specified offset from UTC). However, the representation of leap seconds is not specified. Further, the algorithms to convert between string and number are flawed, because the number is described as &amp;quot;number of milliseconds elapsed from midnight UTC on the morning of 1970-01-01&amp;quot; but the actual number of milliseconds includes all kinds of strange decisecond offsets during the period 1961-01-01 to 1972-01-01. Also, UTC did not exist before about 1960.&lt;br /&gt;
&lt;br /&gt;
Unix timekeeping has a long history of terrible definitions, and Unix notions of time should be totally rejected and expunged.&lt;br /&gt;
&lt;br /&gt;
==Choose different default date==&lt;br /&gt;
The statement that valueAsDate  IDL attribute should return the value 1970-01-01 plus the appropriate time when the time element contains no date creates a problem that there are likely to be time elements that explicitly contain that date.&lt;br /&gt;
&lt;br /&gt;
A better choice would be a value that is highly unlikely to be encountered, and would be implausible as an actual date in most applications, perhaps 9999-12-31.&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
=== Prior discussion ===&lt;br /&gt;
&lt;br /&gt;
* [http://pigsonthewing.org.uk/dates-and-coordinates-in-html5/ Dates and coordinates in HTML5] - blog post by [[User:Pigsonthewing|Andy Mabbett]]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-February/018639.html whatwg mailing list discussion of the above, Feb 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018685.html further whatwg mailing list discussion of the above, Mar 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018759.html Another mailing list thread Mar 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018888.html Spec editor&#039;s  response to the above threads and further discussion, late Mar 2009]&lt;br /&gt;
* [http://html5doctor.com/the-time-element/ HTML5 Doctor: The Time Element]&lt;br /&gt;
&lt;br /&gt;
=== Resources ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.loc.gov/standards/datetime/ Extended Date Time Format efforts] based at the USA&#039;s Library of Congress (Covers unspecific dates; date periods and non-Gregorian dates)&lt;br /&gt;
** [http://www.loc.gov/standards/datetime/proposals.html EDTF proposals] (use-cases)&lt;br /&gt;
* [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11 vCard Format Specification draft-ietf-vcarddav-vcardrev-11] (latest draft as at July 2010)&lt;br /&gt;
** [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-4.3 Section 4.3, date &amp;amp; time]&lt;br /&gt;
** [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 Section 5.7, CALSCALE] (specifies Gregorian or other (e.g. Julian) calendar)&lt;br /&gt;
*** [http://www.ietf.org/mail-archive/web/vcarddav/current/msg01307.html VCARDDAV discussion of CALSCALE]&lt;br /&gt;
* [http://www.tei-c.org/Guidelines/P4/html/ref-DATE.html TEI dates], widely used by archives and libraries to mark up texts, including non-Gregorian ISO8601 &amp;amp; uncertain/ approximate dates&lt;br /&gt;
** [http://www.tei-c.org/Guidelines/P4/html/CO.html#CONADA TEI dates+times]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 (Wikipedia article)]&lt;/div&gt;</summary>
		<author><name>Eatyourgreens</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5164</id>
		<title>Time element</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5164"/>
		<updated>2010-08-05T10:39:29Z</updated>

		<summary type="html">&lt;p&gt;Eatyourgreens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Research, data, use cases, issues, and enhancements related to the [http://www.w3.org/TR/html5/text-level-semantics.html#the-time-element HTML5 &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; element].&lt;br /&gt;
&lt;br /&gt;
== impedance match new date time inputs ==&lt;br /&gt;
The time element should be able to represent every granularity of times and dates that the new date time inputs allow. In particular:&lt;br /&gt;
&lt;br /&gt;
* input type=&amp;quot;date&amp;quot; - &amp;amp;lt;time&amp;amp;gt;YYYY-MM-DD&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;datetime&amp;quot; - &amp;amp;lt;time&amp;amp;gt;YYYY-MM-DDTHH:MM:SS&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;month&amp;quot; - not supported in current time element&lt;br /&gt;
* input type=&amp;quot;week&amp;quot; - not supported in current time element&lt;br /&gt;
* input type=&amp;quot;time&amp;quot; - &amp;amp;lt;time&amp;amp;gt;HH:MM:SS&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
* input type=&amp;quot;datetime-local&amp;quot; - &amp;amp;lt;time&amp;amp;gt;HH:MM:SS-ZZ:YY&amp;amp;lt;/time&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
== year only ==&lt;br /&gt;
The time element should accept just a year.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:YYYY&lt;br /&gt;
;use case research&lt;br /&gt;
:http://microformats.org/wiki/birthday-examples#year_only&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Faruk]] (per [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7145 Bug 7145 - Valid date strings should accept ambiguous inputs, like &amp;quot;2009&amp;quot; or &amp;quot;2007-01&amp;quot;]) One example is the very common archive view found on most blogs, which contain distinct links or headers for each year, each month per year, and often each date within a chosen or highlighted month. Currently, the &amp;lt;code&amp;gt;&amp;amp;lt;time&amp;amp;gt;&amp;lt;/code&amp;gt; element only allows for &amp;lt;code&amp;gt;datetime&amp;lt;/code&amp;gt; values as precise as a specific day, e.g. YYYY-MM-DD.&lt;br /&gt;
* -1 [[Hixie]] - &amp;quot;Without clear use cases, I don&#039;t intend to change the spec here.&amp;quot; (ibid)&lt;br /&gt;
* +1 [[Tantek]] (per [http://www.zeldman.com/superfriends/guide/#time HTML5 Super Friends Technical Details: time element])&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV &amp;amp; EDTF - see external links)&lt;br /&gt;
* +1 [[User:Philipj|Philip Jägenstedt]] - for marking up [http://musicbrainz.org/release/aa82c130-c734-4d9c-b06a-5bba9b44295d.html release dates on e.g. MusicBrainz] where the date is given as YYYY, YYYY-MM or YYYY-MM-DD.&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== year month only  ==&lt;br /&gt;
The time element should accept just a year and a month.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:YYYY-MM&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Faruk]] (per [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7145 Bug 7145 - Valid date strings should accept ambiguous inputs, like &amp;quot;2009&amp;quot; or &amp;quot;2007-01&amp;quot;]) One example is the very common archive view found on most blogs, which contain distinct links or headers for each year, each month per year, and often each date within a chosen or highlighted month. Currently, the &amp;lt;code&amp;gt;&amp;amp;lt;time&amp;amp;gt;&amp;lt;/code&amp;gt; element only allows for &amp;lt;code&amp;gt;datetime&amp;lt;/code&amp;gt; values as precise as a specific day, e.g. YYYY-MM-DD.&lt;br /&gt;
* -1 [[Hixie]] - &amp;quot;Without clear use cases, I don&#039;t intend to change the spec here.&amp;quot; (ibid)&lt;br /&gt;
* +1 [[User:Tantek|Tantek]] I think the blog archives use case (where blogs often link to their archives by a specific month and year) is sufficient to justify adding this capability to the time element. Content hosting sites like Flickr also list archives by specific year/month, e.g. see http://www.flickr.com/photos/tantek/archives/&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV &amp;amp; EDTF - see external links)&lt;br /&gt;
** [http://portablecontacts.net/draft-spec.html#anchor16 Portable contacts allows this] using a &amp;quot;0000&amp;quot; year value.&lt;br /&gt;
* +1 [[User:Philipj|Philip Jägenstedt]] - for marking up [http://musicbrainz.org/release/aa82c130-c734-4d9c-b06a-5bba9b44295d.html release dates on e.g. MusicBrainz] where the date is given as YYYY, YYYY-MM or YYYY-MM-DD.&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== month day only ==&lt;br /&gt;
The time element should accept just a month and a day.&lt;br /&gt;
;ISO8601 syntax&lt;br /&gt;
:--MM-DD&lt;br /&gt;
;use case research&lt;br /&gt;
:http://microformats.org/wiki/birthday-examples#month_and_day_only&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[Tantek]] (per [http://www.zeldman.com/superfriends/guide/#time HTML5 Super Friends Technical Details: time element])&lt;br /&gt;
* +1 &amp;quot;radiz&amp;quot; implied support for --MM-DD with the use case question: &amp;quot;How to use &amp;amp;lt;time&amp;amp;gt; with a date in astrology?&amp;quot; in the article http://html5doctor.com/your-questions-answered-6/&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per [http://www.ietf.org/mail-archive/web/vcarddav/current/msg00999.html use cases discussed in VCARDDAV] &amp;amp; EDTF, e.g. birthdays, wedding anniversaries - see external links)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Calendar ==&lt;br /&gt;
The time element should accept a calendar scale (CALSCALE; default is GREGORIAN) per (and to facilitate interoperability with) the [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 emergent vCard 4 specification], to allow for the the mark-up of non-Gregorian (e.g. Julian) dates, using some as-yet-to-be-formulated CALSCALE type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in VCARDDAV, EDTF &amp;amp; TEI - see external links)&lt;br /&gt;
* +1 [[User:eatyourgreens|Jim O&#039;Donnell]] (Dates such as &#039;circa 1910&#039; published on Flickr eg. [http://www.flickr.com/photos/nationalmaritimemuseum/4793356412/ The RNVR Training Ship &#039;Buzzard&#039;…]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fuzzy dates ==&lt;br /&gt;
The time element should accept &#039;&#039;fuzzy&#039;&#039; (uncertain, approximate) dates and eras.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;discussion&amp;quot;&amp;gt;&lt;br /&gt;
Opinions / discussion:&lt;br /&gt;
* +1 [[User:Pigsonthewing|Andy Mabbett]] (Per use cases in &amp;quot;Extended Date Time Format&amp;quot; proposals &amp;amp; TEI - see external links)&lt;br /&gt;
* ...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Specification ambiguities==&lt;br /&gt;
The specification requires that time be expressed as UTC (or another time zone with a specified offset from UTC). However, the representation of leap seconds is not specified. Further, the algorithms to convert between string and number are flawed, because the number is described as &amp;quot;number of milliseconds elapsed from midnight UTC on the morning of 1970-01-01&amp;quot; but the actual number of milliseconds includes all kinds of strange decisecond offsets during the period 1961-01-01 to 1972-01-01. Also, UTC did not exist before about 1960.&lt;br /&gt;
&lt;br /&gt;
Unix timekeeping has a long history of terrible definitions, and Unix notions of time should be totally rejected and expunged.&lt;br /&gt;
&lt;br /&gt;
==Choose different default date==&lt;br /&gt;
The statement that valueAsDate  IDL attribute should return the value 1970-01-01 plus the appropriate time when the time element contains no date creates a problem that there are likely to be time elements that explicitly contain that date.&lt;br /&gt;
&lt;br /&gt;
A better choice would be a value that is highly unlikely to be encountered, and would be implausible as an actual date in most applications, perhaps 9999-12-31.&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
=== Prior discussion ===&lt;br /&gt;
&lt;br /&gt;
* [http://pigsonthewing.org.uk/dates-and-coordinates-in-html5/ Dates and coordinates in HTML5] - blog post by [[User:Pigsonthewing|Andy Mabbett]]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-February/018639.html whatwg mailing list discussion of the above, Feb 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018685.html further whatwg mailing list discussion of the above, Mar 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018759.html Another mailing list thread Mar 2009]&lt;br /&gt;
** [http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-March/018888.html Spec editor&#039;s  response to the above threads and further discussion, late Mar 2009]&lt;br /&gt;
* [http://html5doctor.com/the-time-element/ HTML5 Doctor: The Time Element]&lt;br /&gt;
&lt;br /&gt;
=== Resources ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.loc.gov/standards/datetime/ Extended Date Time Format efforts] based at the USA&#039;s Library of Congress (Covers unspecific dates; date periods and non-Gregorian dates)&lt;br /&gt;
** [http://www.loc.gov/standards/datetime/proposals.html EDTF proposals] (use-cases)&lt;br /&gt;
* [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11 vCard Format Specification draft-ietf-vcarddav-vcardrev-11] (latest draft as at July 2010)&lt;br /&gt;
** [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-4.3 Section 4.3, date &amp;amp; time]&lt;br /&gt;
** [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 Section 5.7, CALSCALE] (specifies Gregorian or other (e.g. Julian) calendar)&lt;br /&gt;
*** [http://www.ietf.org/mail-archive/web/vcarddav/current/msg01307.html VCARDDAV discussion of CALSCALE]&lt;br /&gt;
* [http://www.tei-c.org/Guidelines/P4/html/ref-DATE.html TEI dates], widely used by archives and libraries to mark up texts, including non-Gregorian ISO8601 &amp;amp; uncertain/ approximate dates&lt;br /&gt;
** [http://www.tei-c.org/Guidelines/P4/html/CO.html#CONADA TEI dates+times]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 (Wikipedia article)]&lt;/div&gt;</summary>
		<author><name>Eatyourgreens</name></author>
	</entry>
</feed>