[4] [[HTML]] の [DFN[[CODE(HTMLe)@en[time]] [[要素]]]]は、[[日時]]や[[日付]]や[[時刻]]を表します。

* 仕様書

[REFS[
- [94] [CITE@en-US-x-hixie[HTML Standard]] ([TIME[2014-05-05 21:57:42 +09:00]] 版) <http://www.whatwg.org/specs/web-apps/current-work/#the-time-element>
]REFS]

* 分類

[95] [CODE(HTMLe)@en[[[time]]]] [[要素]]は、
- [[触知可能内容]]
- [[字句内容]]
- [[フロー内容]]

... です [SRC[>>94]]。

* タグ

[97] [[開始タグ]]も[[終了タグ]]も、省略できません [SRC[>>94]]。

* 属性

[98] [[大域属性]]の他、 [DFN[[CODE(HTMLa)@en[[[datetime]]]]]] [[属性]] (>>103) があります [SRC[>>94]]。

* 内容モデル

[96] [CODE(HTMLe)@en[[[time]]]] [[要素]]の[[内容]]は、[[字句内容]]です [SRC[>>94]]。ただし制限があります (>>103)。

* [CODE(DOMi)@en[HTMLTimeElement]] インターフェイス (DOM)

[99] [CODE(HTMLe)@en[[[time]]]] [[要素]]の[[要素インターフェイス]]は、
[DFN[[CODE(DOMi)@en[[[HTMLTimeElement]]]]]] [[インターフェイス]]です [SRC[>>94]]。

[100] [CODE(DOMi)@en[[[HTMLTimeElement]]]] [[インターフェイス]]は、 
[CODE(DOMi)@en[[[HTMLElement]]]] [[インターフェイス]]を[[継承]]しています [SRC[>>94]]。

[101] [CODE(DOMa)@en[[[dateTime]]]] [[IDL属性]]は、[[データ型]]
[CODE(DOMi)@en[[[DOMString]]]] の[[属性]]で、 [CODE(HTMLa)@en[[[datetime]]]]
[[内容属性]]を[[反映]]しています [SRC[>>94]]。

;; [108] 普通の[[文字列]]としての[[反映]]になります。

* レンダリング

[102] [CODE(HTMLe)@en[[[time]]]] [[要素]]は、その[[内容]]と、 [CODE(HTMLa)@en[[[datetime]]]]
[[属性値]]の[[機械可読]]形とを[[表現]]します。 [SRC[>>94]]

* マイクロデータ

[110] [[マイクロデータ]]の[[特性値]]としては、 [CODE(HTMLe)@en[[[time]]]] [[要素]]の場合[[日時値]]が用いられます。

[111] [CODE(HTMLa)@en[[[itemValue]]]] [[属性]]は、[[取得時]]には[[日時値]]を返し、
[[設定時]]は [CODE(DOMa)@en[[[datetime]]]] [[内容属性]]を[[反映]]します。

* 日時値

[103] [DFN[[RUBYB[[[日時値]]]@en[datetime value]]]]は、 [CODE(HTMLa)@en[[[datetime]]]]
[[内容属性]]があればその[[属性値]]、なければ[[子テキストの連結]]です。 [SRC[>>94]]

[104] [CODE(HTMLa)@en[[[datetime]]]] [[内容属性]]がないときは、[[子孫]]に[[要素]]があっては[['''なりません''']]
[SRC[>>94]]。

[105] [CODE(HTMLa)@en[[[datetime]]]] [[内容属性]]の値は、[[要素]]の[[内容]]を機械可読な形で表したものでなければ[['''なりません''']]
[SRC[>>94]]。

[106] [[日時値]]は、次のいずれかでなければ[['''なりません''']] [SRC[>>94]]。

[FIG(railroad)[
=|
== [[妥当な月文字列]]
== [[妥当な日付文字列]]
== [[妥当な月日文字列]]
== [[妥当な時刻文字列]]
== [[妥当な地方日時文字列]]
== [[妥当な時差文字列]]
== [[妥当な大域日時文字列]]
== [[妥当な月文字列]]
== [[HTMLの年]]
== [[妥当な時間文字列]]
]FIG]

[107] [DFN[[RUBYB[[[要素の内容の機械可読な等価値]]]@en[machine-readable equivalent of the element's contents]]]]とは、
>>106 に対応する構文解析方法によって解釈した結果の値です。いずれによっても解釈できなければ、
そのような値はありません。 [SRC[>>94]] >>106 の各構文は互いに完全に区別可能となっているので、
いずれであるかは曖昧無く決まります。

* 歴史

** 前史

[1] [[日時]]を [[HTML]] で記述する手法は古くから要求があり、[[要素]]を新たに追加するもの、
既存の[[要素]]を流用するものなど、様々な提案がありました。


[FIG(data)[ [118] [[HTML要素概説]]

:[F[要素名]]:[CODE[date]]
:日付:[TIME[1992-12-02]]
:説明:
[TIME[1992-12-02]]付の
[[Tim Berners‑Lee]]
の[[Webページ]]に
[CODE[date]]
要素の構想がある。
文書の作成、編集、失効の日時を表す。
:出典:
[REFS[

- 
[CITE@en[Future plans for HTML]], 
[DATA(.author)[[[Tim Berners-Lee]]]],
[TIME(.published)[1992-12-02T18:35:56.000Z]], [TIME[2024-08-12T09:20:27.147Z]] <https://www.w3.org/History/19921103-hypertext/hypertext/WWW/MarkUp/Future.html>

]REFS]


]FIG]



[FIG(data)[ [37] [[HTML要素概説]]

:[F[要素名]]:[CODE[date]]
:[F[要素名]]:[CODE[time]]
:日付:[TIME[1995-08-15]]
:説明:
[TIME[1995-08-15]]版
[[HTML 2.x]] 
に、
[CODE[date]],
[CODE[time]]
がある。[[日付]]と[[時刻]]を表す。
:出典:
[REFS[

-
[CITE@en[Internationalization of the Hypertext Markup Language]], 
[DATA(.author)[[[Franois Yergeau]]]],
[DATA(.author)[[[Gavin Thomas Nicol]]]],
[DATA(.author)[[[Glenn Adams]]]],
[DATA(,author)[[[Martin J. Duerst]]]],
[DATA(.status)[[[Internet Draft]]]],
[TIME(.published)[1995-08-15]],
[TIME[2024-08-16T03:32:31.000Z]] <https://datatracker.ietf.org/doc/html/draft-ietf-html-i18n-00>


]REFS]

]FIG]



*** 新しい要素の提案

[2]
[CITE[Aural Cascading Style Sheets (ACSS)]] <http://www.w3.org/TR/WD-acss-970630#speech-properties>

> This [INS[('[CODE(CSS)@en[[[speak-date]]]]' property)]] would be most useful when combined with
a new HTML tag used to identify dates, such as this theoretical example:
[PRE(HTML example code)[
   <p>The campaign started on <date value="1874-oct-21">
   the twenty-first of that month</date> and finished 
   <date value="1874-oct-28">a week later</date>
]PRE]

[16]
[CITE@en[W3C I18N FAQ: Date formats]] ([TIME[2007-05-20 22:36:46 +09:00]] 版) <http://www.w3.org/International/questions/qa-date-format#bytheway>

>
Some have advocated the creation of a <date> tag that would display dates according the locale of the user agent. This is subject to the same practical issues as described for dynamic date generation with the Japanese example. The appropriate format is generally a function of the linguistic context of a page, rather than the user's platform.

*** 既存要素の流用

[63] [[マイクロフォーマット]]界隈では、 [CODE(HTMLe)@en[[[abbr]]]] [[要素]]を[[日時]]の表記に流用する
「[[デザイン・パターン]]」を発明しました。 (詳しくは [CODE(HTMLe)@en[[[abbr]]]]
の項を参照してください。)

[62] [CITE@en-us[Tantek's Thoughts]] ([[Tantek Çelik]] 著, [TIME[2006-05-20 00:13:35 +09:00]] 版) <http://tantek.com/log/2005/01.html#d26t0100>

>
My first instinct was to try the <object> tag, since it has a nice mechanism for providing data within its 'data' attribute, and fallback plain text inside the element itself, e.g. (simplified for sake of discussion):
[PRE(HTML example code)[
<object data="20050125">January 25</object>
]PRE]
This worked great in typical modern browsers, except for one: Safari (v1.2.1). Unfortunately, to put it mildly, Safari's <object> support sucks. It doesn't handle <object> fallbacks, it doesn't know when not to handle <object> mime types that it doesn't support, it doesn't support display:inline on <object>, and it doesn't do proper intrinsic sizing of <object> replaced elements. These are all trivial to reproduce bugs.

>Humans don't think of dates and times in terms of fully qualified year, month, date, hour, minute, second, time-zone values. Humans think of dates and times in terms of only that which is necessary. The day, or the day and the month, or perhaps just the hour. What do all these have in common? They are all abbreviations for a fully qualified date and time.
>
Lucky for us, XHTML has an element for abbreviations: <abbr>.
>
Thus, the ISO8601 date 20050125 should be marked up as:
[PRE(HTML example code)[
<abbr title="20050125">January 25th</abbr>
]PRE]

- [38] 
[CITE@en[abbr design pattern - Microformats Wiki]], [TIME[2022-10-08T16:56:50.000Z]], [TIME[2024-08-17T13:11:16.197Z]] <http://microformats.org/wiki/abbr-design-pattern>




[FIG(data)[ [39] [[HTML要素概説]]

:[F[要素名]]:[CODE[abbr]]
:日付:[TIME[2005-01-26T01:00]]
:説明:
[TIME[2005-01-26]]、
[[Tantek Çelik]]
は、
かねてから議論されていた[[日時]]の記述について、
[CODE[abbr]]
を用いる手法を考案した。
[CITE[HTML5]]
に
[CODE[time]]
が追加されるまで
[[microformats]]
の[[デザインパターン]]の1つとして活用された。
:出典:
[REFS[

- 
[DFN[DatesSolved]]:
[CITE@en[Human vs. ISO8601 dates problem solved]],
[DATA(.author)[[[Tantek Çelik]]]], 
[TIME(.published)[20050126T0100][2005-01-26T01:00]],
[TIME[2009-09-26T04:23:59.000Z]], [TIME[2024-08-17T13:12:34.944Z]] <http://tantek.com/log/2005/01.html>
-
[DFN[ABBRPattern]]:
[CITE@en[abbr design pattern - Microformats Wiki]],
[TIME(.published)[16:20, 18 July 2020‎][2020-07-18T16:20]],
[TIME[2022-10-08T16:56:50.000Z]], [TIME[2024-08-17T13:15:00.009Z]] <http://microformats.org/wiki/abbr-design-pattern>

]REFS]
:注釈:
-
[DFN@en[microformats]]
[[HTML]] を利用したデータ記述の方式を定めた一連の仕様群と、
その方法論やコミュニティーの総称。
[[平成時代]]中期頃、
[[HTML]] の開発が凍結されて新機能追加は期待できず、
[[Semantic Web]] は [[HTML]] と切り離されて[[Webサイト]]での利用に難があるという状況で、
既存の[[HTML要素]]や [CODE[class]] [[属性]]を活用したより高度な情報の記述手法が
[[Tantek Çelik]] らにより模索された。
[[Web標準]]に関心がある人々や同時期に勃興しつつあった[[ブログ]]システムなどでしばしば使われた。
方法論は [CITE[HTML5]] の開発に、技術面は[[マイクロデータ]]に大きな影響を与えた。

]FIG]


[64] しかしこれに対しては「[CODE(HTMLe)@en[[[abbr]]]] は[[略語]]を表すが、[[日時]]は[[略語]]ではない」
などの批判があり、[[マイクロフォーマット]]界隈を越えて普及するには至りませんでした。

** HTML5

[40] 
[CITE@en-GB-hixie[Web Forms 2.0]], [TIME[2024-08-20T17:41:33.000Z]], [TIME[2024-09-01T05:30:44.249Z]] <https://whatwg.org/specs/web-forms/2004-12-10-call-for-comments/>

>
[PRE[
 * add something like <date>, <time>, and <number> so that dates, times,
   and numbers can be auto-formatted.
]PRE]

;; [41] 将来構想の注釈。


[FIG(data)[ [216] [[HTML要素概説]]

:[F[要素名]]:[CODE[date]]
:[F[要素名]]:[CODE[time]]
:[F[要素名]]:[CODE[number]]
:日付:[TIME[2004-12-10]]
:説明:
[TIME[2004-12-10]]版 [CITE[Web Forms 2.0]] 
の文書ソース注釈に、
将来構想として
[CODE[date]],
[CODE[time]],
[CODE[number]]
がある。
[SEE[>>58]]
整形表示に用いる想定だった。
:出典:
[REFS[

-
[CITE@en-GB-hixie[Web Forms 2.0]], 
[DATA(.author)[[[WHATWG]]]],
[[Ian Hickson]],
[DATA(.status)[[[Call For Comments]]]],
[TIME(.published)[10 December 2004][2004-12-10]],
[TIME[2024-08-20T17:41:33.000Z]], [TIME[2024-09-01T05:30:44.249Z]] <https://whatwg.org/specs/web-forms/2004-12-10-call-for-comments/>

]REFS]
:注釈:
- [58] 
[TIME[2004-07-15]]版にはまだなかった。


]FIG]



[FIG(data)[ [42] [[HTML要素概説]]

:[F[要素名]]:[CODE[date]]
:[F[要素名]]:[CODE[time]]
:日付:[TIME[2004-09-23]]
:説明:
[TIME[2004-09-23]]版
[CITE@en-GB-hixie[Web Applications 1.0]]
に、
[CODE[date]],
[CODE[time]]
の構想が示されていた。
:出典:
[REFS[

-
[CITE@en-GB-hixie[Web Applications 1.0]], 
[DATA(.author)[[[WHATWG]]]],
[[Ian Hickson]],
[DATA(.status)[[[Working Draft]]]],
[TIME(.published)[8 December 2004][2004-12-08]],
[TIME[2024-09-01T08:36:36.000Z]], [TIME[2004-12-10T05:54:20.058Z]] <https://web.archive.org/web/20041210054847/http://www.whatwg.org/specs/web-apps/current-work/>

]REFS]

]FIG]

[FIG(data)[ [43] [[HTML要素概説]]

:[F[要素名]]:[CODE[date]]
:[F[要素名]]:[CODE[time]]
:[F[要素名]]:[CODE[t]]
:日付:[TIME[2006-02-24]]
:説明:
[TIME(jp)[2006-02-24]]時点の
[CITE@en-GB-hixie[Web Applications 1.0]]
文書ソース注釈内の作業予定に、
[CODE[t]]
がある。
[SEE[>>59]]
:出典:[[Web Applications 1.0]]
:注釈:
- [59] 
[TIME(jp)[2006-02-17]]時点ではまだ
[CODE[date]], [CODE[time]]
だった。

]FIG]

*** [CODE(HTMLe)@en[t]] 要素

[3]
[[Ian Hickson]] は、[[日時]]を表す[[要素]]の追加の要求が古くから強いことを踏まえ、
[CODE(HTMLe)@en[[[t]]]] [[要素]]を [[HTML5]] 仕様案に追加しました。


[45] [CITE@en[<t> element, draft the first.]], [[Hixie]], [TIME[2006-10-26 17:23:51 +09:00]], [TIME[2024-09-01T10:28:43.000Z]] <https://github.com/whatwg/html/commit/6bdcd9dc9da3f21cb61f0f8c123ed2d252cd2583>


[FIG(data)[ [44] [[HTML要素概説]]

:[F[要素名]]:[CODE[t]]
:日付:[TIME[2006-10-26]]
:説明:
[TIME[2006-10-26]]、
[CITE[HTML5]]
は
[CODE[t]]
を定義した。
:出典:
[REFS[

- [CITE[HTML5 r210]],
[DATA(.author)[[[Hixie]]]], 
[TIME(.published)[2006-10-26 17:23:51 +09:00]], [TIME[2024-09-01T10:28:43.000Z]] <https://github.com/whatwg/html/commit/6bdcd9dc9da3f21cb61f0f8c123ed2d252cd2583>


]REFS]

]FIG]



[5]
現地時間が記述されていても、 tooltip で利用者の地方時が表示されるようなブラウザにwktk
([[名無しさん]] [WEAK[2006-09-25 23:41:07 +00:00]])

[6]
[CITE[[whatwg] Joe Clark's Criticisms of the WHATWG and HTML 5]] <http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2006-October/007513.html>
([[名無しさん]] [WEAK[2006-10-31 00:54:15 +00:00]])

[7] >>6
[CITE['''['''whatwg''']''' Joe Clark's Criticisms of the WHATWG and HTML 5]] ([TIME[2009-03-09 12:00:26 +09:00]] 版、
[[Ian Hickson]] 著) <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2006-October/007513.html>

><t> (or an equivalent) has been widely requested, especially in the 
microformats and CSS communities. Several microformats have need for 
encoding specific times and/or dates, and are currently (ab?)using <abbr> 
for this purpose. The CSS community has requested a <date> or <time> 
element because they want to restyle dates and times according to locale. 
The blogging and content publishing communities have also raised the need 
for a way to unambiguously mark up what part of their document is a date 
and/or time, though in their case (as with microformats) they need a way 
to then mark each date/time element as being a particular semantic 
(publishing date, birth date, calendar event time etc).
>
Also, the aforementioned research indicated that there are substantial 
amounts of content on the Web that uses invented elements, IDs, and class 
attributes to mark up dates and times. For example, I found about the same 
number of pages with the obscure ID "updatedtime" as I did pages with a 
<button> element; "date" was the 14th most frequently seen class name.

*** [CODE(HTMLe)@en[time]] 要素 (第1世代)

[8] 「[CODE(HTMLe)@en[[[t]]]]」は短すぎるということで、後に [CODE(HTMLe)@en[[[time]]]]
に改められました。


- [46] 
[CITE@en[<t> becomes <time>]], [[Hixie]], [TIME[2006-11-23 10:56:14 +09:00]], [TIME[2024-09-01T12:16:09.000Z]] <https://github.com/whatwg/html/commit/fdfe6548265125712520f3e1b72812235e9a8123#diff-41cf6794ba4200b839c53531555f0f3998df4cbb01a4d5cb0b94e3ca5e23947d>
- [49] [CITE@en[xref scripting is enabled / scripting is disabled; define 'text node'…]], [[Hixie]], [TIME[2006-11-26 14:51:15 +09:00]], [TIME[2024-09-01T12:21:42.000Z]] <https://github.com/whatwg/html/commit/afc04cb92c239fdf03db01751379817cdc7ae725#diff-41cf6794ba4200b839c53531555f0f3998df4cbb01a4d5cb0b94e3ca5e23947d>

;; [47] 同時に旧 [CODE[x]] が [CODE[t]] に改称されました。 
[SEE[ [[<x>]] ]]

[FIG(data)[ [48] [[HTML要素概説]]

:[F[要素名]]:[CODE[t]]
:[F[要素名]]:[CODE[time]]
:日付:[TIME[2006-11-23T10:56:14+09:00]]
:説明:
[TIME[2006-11-23]]、
[CITE[HTML5]]
の
[CODE[t]]
は
[CODE[time]]
に改称された。
:出典:
[REFS[

- [CITE[HTML5 r359]],
[DATA(.author)[[[Hixie]]]], 
[TIME(.published)[2006-11-23 10:56:14 +09:00]], [TIME[2024-09-01T12:16:09.000Z]] <https://github.com/whatwg/html/commit/fdfe6548265125712520f3e1b72812235e9a8123>

]REFS]

]FIG]



[17]
[CITE[Sam Ruby: The <time> element]] ([TIME[2007-04-19 08:32:25 +09:00]] 版) <http://www.intertwingly.net/blog/2007/04/17/The-time-element>
([[名無しさん]] [WEAK[2007-04-18 23:39:35 +00:00]])

[76] [CITE[''''''[''''''whatwg'''''']'''''' <time> element feedback]]
( ([TIME[2010-12-08 08:42:59 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-December/029363.html>

[67] [CITE[''''''[''''''whatwg'''''']'''''' proposal: extend <time> to markup durations]]
( ([TIME[2011-07-30 04:20:12 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-July/032456.html>

*** [CODE(HTMLe)@en[time]] 要素 (第2世代)

[90] 2011年10月に [CODE(HTMLe)@en[[[time]]]] [[要素]]は削除され、かわりに [CODE(HTMLe)@en[[[data]]]]
[[要素]]が導入されました。11月に新たに [CODE(HTMLe)@en[[[time]]]] [[要素]]が追加されました。
([CODE(HTMLe)@en[[[data]]]] [[要素]]も残っています。)

[91] 第1世代の [CODE(HTMLe)@en[[[time]]]] [[要素]]は [[Webブラウザー]]に相応のレンダリングを求めるものでしたが、
実際には[[著者]]は独自のレンダリングを望んでおり、[[Webブラウザー]]も独自のレンダリングを実装する意思がないことから、
同名の新しい[[要素]]を改めて定義しなおしたものだと説明されています。

[92] しかしこの変更への反発から [[W3C]] [[HTML WG]] を中心に大きな混乱が生じ、
それまで [[WHATWG]] の [[HTML5]] の複製だった [[W3C]] の [[HTML5]]
に独自の変更が加えられ、それをきっかけに両者が同期されなくなりました。
[[W3C]] の [[HTML5]] はこの騒動の後しばらく放置されていましたが、最終的には [[W3C]]
が独自の編集者を雇用し、 [[WHATWG]] と決別して独自の仕様書を発行するようになります。

;; [93] 最終的には [[W3C]] も [[WHATWG]] 側の [CODE(HTMLe)@en[[[time]]]] [[要素]]の定義に揃えたようです。
ただし独自の編集を加えているようです。

;; [55] 厳密に言えばこれ以前も [[W3C]] [[HTML WG]] の決議に従って
[[W3C]] 版は [[WHATWG]] [CITE[HTML Standard]] の一部を削除するなどの違いがあったのですが、
[[Ian Hickson]] が編集している [[WHATWG]] [[HTML5]] のソースファイルから [[W3C]] [[HTML5]] を生成していました。これ以後も協調体制の維持のための調整は続いていて、
ただちに両 [[WG]] の関係が決裂に至ったわけではありません。
しかし大勢として言えば、このときまでなんだかんだ同調されてきた両 [[WG]]
の仕様書が、この変更をきっかけにまったく別々に編集される体制へと変化したといえます。

;; [56] 
ただ分裂したとはいっても [[W3C]] [[HTML WG]] には独自に仕様書を編集し続ける実力がありませんでした。
そこで活発に編集され、主要 [[Webブラウザー事業者]]が参照していて、
[[Webブラウザー]]の実情をよく反映している [[WHATWG]] 版仕様書の変更を
[[W3C]] 側が手動で取り込むという形になっていき、両者が決定的に異なる状態にはなりませんでした。
[SEE[ [[HTML 5.0]] ]]


- [69] [CITE@en[Web Applications 1.0 r6783        Drop <time> and replace it with <data>. Drop the Atom conversion section entirely. Convert a bunch of examples that used to use <time pubdate> to using schema.org, to show how to annotate publication dates and the like in a machine-processable way.]]
( ([TIME[2011-10-29 14:38:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6782&to=6783>
-- [50] 
[CITE@en['''['''acgiowt''']''' (2) Drop <time> and replace it with <data>. Drop the Atom c…]], [[Hixie]], [TIME[2011-10-29 14:38:56 +09:00]], [TIME[2024-09-06T13:38:19.000Z]] <https://github.com/whatwg/html/commit/70b0ce45a26937a3f26eeb72b146261ff6210a1d>

[51] 
[CITE@en[13240 – Consider replacing <time> with <data>]], [TIME[2019-04-02T04:48:11.000Z]], [TIME[2024-09-06T13:38:33.958Z]] <https://www.w3.org/Bugs/Public/show_bug.cgi?id=13240>


[70] [CITE[IRC logs: freenode / #whatwg / 20111102]]
( ([TIME[2011-11-05 12:41:15 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111102>

[71] [CITE[IRC logs: freenode / #whatwg / 20111102]]
( ([TIME[2011-11-05 12:41:15 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111102>

[72] [CITE@en[HTML5 spec reverted to cvs r1.5431, svn r6782 ''''''[''''''was: Revert request  for r6783'''''']'''''']]
( ([[Michael'''['''tm''']''' Smith]] 著, [TIME[2011-11-11 03:06:27 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-html/2011Nov/0098.html>

[73] [CITE[IRC logs: freenode / #whatwg / 20111110]]
( ([TIME[2011-11-12 00:39:03 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111110>

[74] [CITE[IRC logs: freenode / #whatwg / 20111111]]
( ([TIME[2011-11-12 00:43:00 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111111>

[75] [CITE@en[Ian Hickson responds over HTML5 getting 'time' element back | News | .net magazine]] ([TIME[2011-11-12 01:05:16 +09:00]] 版) <http://www.netmagazine.com/news/ian-hickson-responds-over-html5-getting-time-element-back-111552>

[77] [CITE@en[Time element - WHATWG Wiki]]
( ([TIME[2011-11-06 10:06:26 +09:00]] 版))
<http://wiki.whatwg.org/wiki/Time_element>

- [78] [CITE@en[Web Applications 1.0 r6827        the <time> element is dead, long live the <time> element]]
( ([TIME[2011-11-19 04:43:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6826&to=6827>
-- [53] 
[CITE@en['''['''acgiowt''']''' (1) the <time> element is dead, long live the <time> element]], [[Hixie]], [TIME[2011-11-19 04:43:57 +09:00]], [TIME[2024-09-06T13:44:04.000Z]] <https://github.com/whatwg/html/commit/92baa8333203ea5b97316bb1775331b216d55dab#diff-41cf6794ba4200b839c53531555f0f3998df4cbb01a4d5cb0b94e3ca5e23947d>

[79] [CITE@en[Web Applications 1.0 r6829        extend timezone format to also allow omitting the colon]]
( ([TIME[2011-11-19 08:22:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6828&to=6829>

[80] [CITE@en[(3) Google]]
( ([TIME[2011-11-19 13:57:07 +09:00]] 版))
<https://plus.google.com/107429617152575897589/posts/3ZEQAVkF6xd>

[81] [CITE[IRC logs: freenode / #whatwg / 20111116]]
( ([TIME[2011-11-18 00:23:14 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111116>

[82] [CITE[IRC logs: freenode / #whatwg / 20111118]]
( ([TIME[2011-11-20 12:06:23 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111118>

[83] [CITE[IRC logs: freenode / #whatwg / 20111129]]
( ([TIME[2011-11-29 08:57:16 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111129>

[84] [CITE[IRC logs: freenode / #whatwg / 20111206]]
( ([TIME[2011-12-07 08:32:57 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20111206#l-1112>

[85] [CITE['''['''whatwg''']''' proposal: extend <time> to markup durations]]
([TIME[2011-12-07 09:36:37 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-December/034091.html>

[86] [CITE@en[Web Applications 1.0 r6845        Update the date-and-time microsyntaxes to support having the 'T' replaced by a single space. (Note: multiple spaces are invalid and will cause parse failures. Only a single space is supported.) Based on proposal and implementation evidence from Tantek documented at http://wiki.whatwg.org/wiki/Time_element#permit_space_instead_of_T_in_datetimesAffected topics: HTML, Microdata]]
( ([TIME[2011-12-07 08:00:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6844&to=6845>

[87] [CITE[''''''[''''''whatwg'''''']'''''' proposal: extend <time> to markup durations]]
( ([TIME[2011-12-09 08:14:18 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-December/034091.html>


[FIG(data)[ [54] [[HTML要素概説]]

:[F[要素名]]:[CODE[time]]
:[F[要素名]]:[CODE[data]]
:日付:[TIME[2011-10-29]]
:説明:
[TIME[2011-10-29]]、
[CITE[HTML Standard]]
の
[CODE[time]]
は削除され、
[CODE[data]]
が追加された。
[SEE[>>57]]
現行仕様である。
:出典:
[REFS[

- [CITE[HTML r6783]],
[DATA(.author)[[[Hixie]]]], 
[TIME(.published)[2011-10-29 14:38:56 +09:00]], [TIME[2024-09-06T13:41:00.000Z]] <https://github.com/whatwg/html/commit/70b0ce45a26937a3f26eeb72b146261ff6210a1d>

]REFS]
:注釈:
-
[57] 
これをきっかけに
[[W3C HTML WG]]
の議事は紛糾、
以後 
[[WHATWG]] [CITE[HTML Standard]] と [[W3C]] [CITE[HTML 5.0]]
は完全に分裂した。
[SRC[SW:time]]

]FIG]

[FIG(data)[ [52] [[HTML要素概説]]

:[F[要素名]]:[CODE[time]]
:日付:[TIME[2011-11-18]]
:説明:
[TIME[2011-11-18]]、
[CITE[HTML Standard]]
に
[CODE[time]]
が追加された。
現行仕様である。
旧 [CODE[time]] とは違いも多い。
:出典:
[REFS[

- [CITE[HTML r6827]],
[DATA(.author)[[[Hixie]]]], 
[TIME(.published)[2011-11-19 04:43:57 +09:00]], [TIME[2024-09-06T13:44:04.000Z]] <https://github.com/whatwg/html/commit/92baa8333203ea5b97316bb1775331b216d55dab>


]REFS]

]FIG]




[88] [CITE@en[Web Applications 1.0 r7435       Make the year-only format for <time> more in line with how it works elsewhere.]]
( ([TIME[2012-10-06 07:50:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=7434&to=7435>

* 実装

[61] [CODE(HTMLe)@en[[[time]]]] [[要素]]を[[利用者]]の[[時間帯]]・[[ロケール]]の文字列として[[レンダリング]]する[[スクリプト]]。
「○分前」みたいな表示もできます。
<http://suika.fam.cx/www/style/ui/time.js.u8>

* 関連

[109] [CODE(HTMLa)@en[[[sortable]]]] な[[表]]の[[整列]]には、 [CODE(HTMLe)@en[[[time]]]]
[[要素]]の[[日時値]]が使われることがあります。

[65] [CODE(HTMLe)@en[[[time]]]] [[要素]]以前にも [[HTML]] には [CODE(HTMLe)@en[[[ins]]]]
[[要素]]と [CODE(HTMLe)@en[[[del]]]] [[要素]]に [CODE(HTMLa)@en[[[datetime]]]]
[[属性]]があり、編集の日時を表記するためにはこれが用いられていました。 [[CSS]]
によって [CODE(HTMLa)@en[[[datetime]]]] [[属性]]を[[レンダリング]]させている人もいました。

[9] [CODE(HTMLe)@en[[[time]]]] [[要素]]は[[文書]]中の[[日時]]を[[マーク付け]]するものですが、
[[フォーム]]において[[利用者]]に[[日時]]を入力させるものとしては
[CODE(HTML)@en[[[<input type=datetime>]]]]、
[CODE(HTML)@en[[[<input type=datetime-local>]]]]、
[CODE(HTML)@en[[[<input type=date>]]]]、
[CODE(HTML)@en[[[<input type=time>]]]] があります。

[10] [[文書]]の[[作成日時]]や[[変更日時]]を [[Dublin Core]] を用いて
[CODE(HTMLe)@en[[[meta]]]] [[要素]]に記述する人達もいました。

[89] [[HTML+RDFa 1.1]] は [CODE(HTMLe)@en[[[time]]]] [[要素]]の独自の解釈を規定しています。
([[RDFa処理器]]の項を参照。)

[112] [CODE(HTMLe)@en[[[data]]]] [[要素]]は、[CODE(HTMLe)@en[[[time]]]] 
[[要素]]を一般化して[[日時]]以外にも拡張したものです。 [CODE(HTMLe)@en[[[data]]]]
[[要素]]も[[日時]]の表記に利用できます。

[EG[
[113] 例えば [[HTML Standard]] には、 [[Unix time]] を [CODE(HTMLa)@en[[[value]]]]
[[属性]]に指定した [CODE(HTMLe)@en[[[data]]]] [[要素]]の例が掲載されています。
]EG]

[11] [CITE@en[HTML5TimeZone - Internationalization]]
([TIME[2014-08-27 19:33:53 +09:00]] 版)
<https://www.w3.org/International/wiki/HTML5TimeZone>

[12] [CITE@en[Fix #426, time element content model contradiction · whatwg/html@a14ca08]]
([TIME[2015-12-30 10:28:50 +09:00]] 版)
<https://github.com/whatwg/html/commit/a14ca08fae3b2d2feec88544dd24b2b3db21ae16>

[FIG(quote)[
[FIGCAPTION[
[13] [CITE@ja[【皇室ウイークリー】(番外編)佳子さまお誕生日〈45枚のお写真で振り返るこの1年〉(1/6ページ) - 産経ニュース]]
([[SANKEI DIGITAL INC.]] 著, [TIME[2015-12-29 07:04:50 +09:00]] 版)
<http://www.sankei.com/premium/news/151229/prm1512290006-n1.html>
]FIGCAPTION]

> 
> <time><!-- date --><span id="__r_publish_date__">2015.12.29 06:00</span><!-- date end --></time><span class="speech">更新</span>
> 

]FIG]


[FIG(quote)[
[FIGCAPTION[
[14] [CITE@ja[社労士:書き込み「社員うつにさせる方法」会員権停止に - 毎日新聞]]
([TIME[2015-12-08 15:44:48 +09:00]] 版)
<http://mainichi.jp/articles/20151230/k00/00m/040/090000c>
]FIGCAPTION]

> 
> <p class="post">毎日新聞<time>2015年12月30日 07時45分</time><time>(最終更新 12月30日 07時45分)</time></p>
> 

]FIG]


[FIG(quote)[
[FIGCAPTION[
[15] [CITE@ja[年賀状のサルを12年前と比べてみたら...デザイナーは同じ人、ヒツジでも話題に]]
([TIME[2015-12-31 14:21:46 +09:00]] 版)
<http://www.huffingtonpost.jp/2015/12/30/new-years-card-monkey-2004-and-2016_n_8893298.html>
]FIGCAPTION]

> 
>                                 <time datetime="2015-12-31">2015年12月31日</time>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[18] [CITE@ja[年賀状のサルを12年前と比べてみたら...デザイナーは同じ人、ヒツジでも話題に]]
([TIME[2015-12-31 14:25:31 +09:00]] 版)
<http://www.huffingtonpost.jp/2015/12/30/new-years-card-monkey-2004-and-2016_n_8893298.html>
]FIGCAPTION]

> 
>         投稿日: <time datetime="2015-12-30T05:14:20-05:00">
>             2015年12月30日 19時14分 JST        </time>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[19] [CITE@ja[時事ドットコム:文化庁の京都移転有力に=「一部機能」軸に検討-政府]]
([TIME[2015-12-31 14:45:39 +09:00]] 版)
<http://www.jiji.com/jc/zc?k=201512/2015123000492&g=pol>
]FIGCAPTION]

> との期待もあり、石破氏の手腕が問われている。 <span id="pub_time">(2015/12/30-17:59)</span><span style="visibility: hidden;"><time itemprop="datePublished" datetime="2015-12-30 17:59" pubdate="pubdate">2015/12/30-17:59</time></span></p></div>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[20] [CITE[今年も来年もアニメはMX! 今年もアニメ攻勢がすごいTOKYO MXの年末年始特番、そして2016年について聞いてみた!!|おたぽる]]
([TIME[2015-12-31 15:00:36 +09:00]] 版)
<http://otapol.jp/2015/12/post-5150.html>
]FIGCAPTION]

> 
> <div class="entryDate smallFont" itemprop="datePublished" content="2015-12-28">2015.12.28</div>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[21] [CITE@ja[二次創作について - カクヨムヘルプセンター]]
([TIME[2016-01-01 15:12:46 +09:00]] 版)
<https://kakuyomu.jp/help/entry/fan_fiction_sources>
]FIGCAPTION]

> 
>           <time pubdate datetime="2015-12-09T06:16:36Z" title="2015-12-09T06:16:36Z">
>             <span class="date-year">2015</span><span class="hyphen">-</span><span class="date-month">12</span><span class="hyphen">-</span><span class="date-day">09</span>
>           </time>

]FIG]


[22] [CITE@en[Invert the content model for the <time> element · whatwg/html@d82d29d]]
([TIME[2016-02-07 11:27:25 +09:00]] 版)
<https://github.com/whatwg/html/commit/d82d29ddfccaa2d1806dc9ed48fd3bbbc0181912>

[23] [CITE@en[Link to the correct "Text" from the time element · whatwg/html@7bae38d]]
([TIME[2016-02-08 11:14:06 +09:00]] 版)
<https://github.com/whatwg/html/commit/7bae38d0405c6cd72d688b38922bff7e21d9e41a>

[24] [CITE@en[Point out extra requirements for time without datetime attribute · whatwg/html@e801902]]
([TIME[2016-02-08 11:14:33 +09:00]] 版)
<https://github.com/whatwg/html/commit/e801902ac23dcc2074f69c71be7561fb8ef026b1>

[25] [CITE@en[Fix #644: Only look at child Text nodes in <time> · whatwg/html@b437a80]]
([TIME[2016-03-05 18:10:19 +09:00]] 版)
<https://github.com/whatwg/html/commit/b437a803c2310d8fb2e05aef343ea24166afb9fd>

[26] [CITE@en[Refactor child Text nodes to a new concept · whatwg/html@0dd609f]]
([TIME[2016-03-10 21:36:56 +09:00]] 版)
<https://github.com/whatwg/html/commit/0dd609fddc08dab337d24da874c787e51e851efc>

[FIG(quote)[
[FIGCAPTION[
[27] ([TIME[2016-04-25 13:05:47 +09:00]] 版)
<https://www.fullspeed.co.jp/>
]FIGCAPTION]

> 
>   <time>2016.04.25</time>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[28] [CITE@ja[民泊のエアビーアンドビー、苦情サイト新設 - WSJ]]
( ([[NATHAN OLIVAREZ-GILES]]著, [TIME[2016-06-03 19:14:09 +09:00]]))
<http://jp.wsj.com/articles/SB10513819889225894892604582103810164964978>
]FIGCAPTION]

> 
> <time class="timestamp">
>   2016 年 6 月 2 日 16:48 JST
> </time>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[29] [CITE[動画:上坂すみれの文化部は夜歩くチャンネル(上坂すみれ/早瀬かな) - ニコニコチャンネル:エンタメ]]
([TIME[2016-07-04 17:23:20 +09:00]])
<http://ch.nicovideo.jp/bunkabu/video>
]FIGCAPTION]

> 		<p class="time">
> 			<time>
> 				<var title='2016/07/01 13:00'>
> 				2016-07-01 13:00
> 				</var>
> 			</time>
> 

]FIG]


[FIG(quote)[
[FIGCAPTION[
[30] [CITE@jp[KinKi Kids オフィシャルサイト / Johnny's Entertainment]]
([TIME[2016-07-13 19:26:10 +09:00]])
<http://je-kinkikids.com/>
]FIGCAPTION]

> <p class="date">2016.07.13</p>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[31] [CITE[京町家・中古住宅をリノベーションにより上質な空間へとプロデュースする京都の不動産会社 株式会社 八清(ハチセ,Hachise)]]
( ([TIME[2016-07-15 12:29:25 +09:00]]))
<http://www.hachise.jp/>
]FIGCAPTION]

> <span class="day">2016/6/24</span>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[32] [CITE[NewsPicks]]
( ([TIME[2016-07-27 13:12:11 +09:00]]))
<https://newspicks.com/>
]FIGCAPTION]

> <span class="published elapsed" data-datetime="2016-07-27T03:39:43+00:00"></span>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[33] [CITE@ja[中村繪里子 きけないらじお | カルチャー情報サイト「yoppy」]]
([TIME[2016-11-11 23:15:05 +09:00]])
<http://www.yoppy.tokyo/category/special/kikenairadio>
]FIGCAPTION]

> 
>         <time datetime="">2016/11/04 17:30</time>

]FIG]


[FIG(quote)[
[FIGCAPTION[
[34] [CITE[家電会議 - Gear S2の厳選レビュー・ユーザーの評判(記事37件)]]
( ([TIME[2016-12-28 12:15:59 +09:00]]))
<https://kadenkaigi.com/product/300730585406898844>
]FIGCAPTION]

> <time itemprop="datePublished" datetime="2016-07-05T12:19:30Z"></time>
>     <time class="timestamp">6ヶ月前</time>

]FIG]


[35] [CITE@en[User:Matthew Raymond/date element - WHATWG Wiki]]
( ([TIME[2014-10-11 19:24:54 +09:00]]))
<https://wiki.whatwg.org/wiki/User:Matthew_Raymond/date_element>

[FIG(quote)[
[FIGCAPTION[
[36] [CITE@ja[ムービー&ラジオ一覧 | アソビストア]]
([TIME[2020-02-02 11:02:22 +09:00]])
<https://asobistore.jp/special/List>
]FIGCAPTION]

> <time>2020.01.28</time>&#xFF5E;<time></time></p>

]FIG]
