我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

The HTMLTimeElement interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements.

Properties

Inherits properties from its parent, HTMLElement.

HTMLTimeElement.dateTime
Is a DOMString that reflects the datetime HTML attribute, containing a machine-readable form of the element's date and time value.

Methods

No specific method; inherits methods from its parent, HTMLElement.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLTimeElement' in that specification.
Living Standard  
HTML 5.1
The definition of 'HTMLTimeElement' in that specification.
Recommendation No change from HTML5.
HTML5
The definition of 'HTMLTimeElement' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLTimeElementChrome Full support 62Edge Full support YesFirefox Full support 22IE No support NoOpera Full support 49
Full support 49
No support 11.5 — 15
Safari Full support 10WebView Android Full support 62Chrome Android Full support 62Firefox Android Full support 22Opera Android Full support 46
Full support 46
No support 11.5 — 14
Safari iOS Full support 10Samsung Internet Android ?
dateTimeChrome Full support 62Edge Full support 14Firefox Full support 22IE No support NoOpera Full support 49
Full support 49
No support 11.5 — 15
Safari Full support 10WebView Android Full support 62Chrome Android Full support 62Firefox Android Full support 22Opera Android Full support 46
Full support 46
No support 11.5 — 14
Safari iOS Full support 10Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

  • The HTML element implementing this interface: <time>.

文件標籤與貢獻者

最近更新: mdnwebdocs-bot,