Web/API/HTMLTimeElement

From Get docs


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 StandardThe definition of 'HTMLTimeElement' in that specification. Living Standard  
HTML 5.1The definition of 'HTMLTimeElement' in that specification. Recommendation No change from HTML5.
HTML5The definition of 'HTMLTimeElement' in that specification. Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
HTMLTimeElement Chrome

Full support 62

Edge

Full support ≤18

Firefox

Full support 22

IE

No support No

Opera Full support 49


Full support 49


No support 11.5 — 15


Safari

Full support 10

WebView Android

Full support 62

Chrome Android

Full support 62

Firefox Android

Full support 22

Opera Android Full support 46


Full support 46


No support 11.5 — 14


Safari iOS

Full support 10

Samsung Internet Android

Full support 8.0

dateTime Chrome

Full support 62

Edge

Full support 14

Firefox

Full support 22

IE

No support No

Opera Full support 49


Full support 49


No support 11.5 — 15


Safari

Full support 10

WebView Android

Full support 62

Chrome Android

Full support 62

Firefox Android

Full support 22

Opera Android Full support 46


Full support 46


No support 11.5 — 14


Safari iOS

Full support 10

Samsung Internet Android

Full support 8.0

Legend

Full support  
Full support
No support  
No support


See also

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