<?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=Geber</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=Geber"/>
	<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/wiki/Special:Contributions/Geber"/>
	<updated>2026-04-05T18:33:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5073</id>
		<title>Time element</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5073"/>
		<updated>2010-07-13T13:51:52Z</updated>

		<summary type="html">&lt;p&gt;Geber: /* Specification ambiguities */  revise after further reading&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Research, data, use cases, issues, and enhancements related to the HTML5 &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; element.&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 / discusion:&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 / discusion:&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 / discusion:&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 (default is GREGORIAN) per the [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 emergent vCard 4 specification], to facilitate the mark-up of non-Gregorian (e.g. Julian) dates.&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 &amp;amp; EDTF - 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 - 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;
* [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://pigsonthewing.wordpress.com/2009/02/23/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 Feb 2009 whatwg mailing list discussion of the above]&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://en.wikipedia.org/wiki/ISO_8601 ISO 8601 (Wikipedia article)]&lt;/div&gt;</summary>
		<author><name>Geber</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5072</id>
		<title>Time element</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=Time_element&amp;diff=5072"/>
		<updated>2010-07-13T13:22:55Z</updated>

		<summary type="html">&lt;p&gt;Geber: 2 new sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Research, data, use cases, issues, and enhancements related to the HTML5 &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; element.&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 / discusion:&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 / discusion:&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 / discusion:&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 (default is GREGORIAN) per the [http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-11#section-5.7 emergent vCard 4 specification], to facilitate the mark-up of non-Gregorian (e.g. Julian) dates.&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 &amp;amp; EDTF - 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 - 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;
Nowhere does the specification say times and dates should be in the ISO-8601 format. Failure to say if, and to what extent that specification is adopted leads to ambiguities such as:&lt;br /&gt;
*Is 20100701 a valid date?&lt;br /&gt;
*Is 1972-06-30T23:59:&#039;&#039;&#039;60&#039;&#039;&#039; a valid date &amp;amp; time?&lt;br /&gt;
&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 implies that ISO-8601 is &#039;&#039;&#039;not&#039;&#039;&#039; adopted, since that date has no special significance within the ISO 8601 spec.&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;
* [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://pigsonthewing.wordpress.com/2009/02/23/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 Feb 2009 whatwg mailing list discussion of the above]&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://en.wikipedia.org/wiki/ISO_8601 ISO 8601 (Wikipedia article)]&lt;/div&gt;</summary>
		<author><name>Geber</name></author>
	</entry>
</feed>