HTMLTimeElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2017.

HTMLTimeElement インターフェイスは、(継承によって利用できる、通常の HTMLElement インターフェイスのものに加え)、<time> 要素を操作するための特別なプロパティを提供します。

EventTarget Node Element HTMLElement HTMLTimeElement

プロパティ

親である HTMLElement から継承したプロパティがあります。

HTMLTimeElement.dateTime

文字列で、HTML の datetime 属性を反映し、機械可読な形式の日付と時刻の値を保持します。

メソッド

固有のメソッドはありません。親である HTMLElement から継承したメソッドがあります。

仕様書

Specification
HTML
# htmltimeelement

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
HTMLTimeElement
dateTime

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Has more compatibility info.

関連情報

  • このインターフェイスを実装する HTML 要素: <time>.