{{ DomRef() }}
HTML time element interface
DOM time objects expose the HTMLTimeElement interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating time elements.
Properties
Name | Type | Description |
---|---|---|
dateTime |
DOMString |
Reflects the {{ htmlattrxref("datetime", "time") }} HTML attribute, containing a machine-readable form of the element's date and time value. |
See also
- {{ HTMLElement("time") }} HTML element
- {{ HTMLElement("data") }} HTML element
{{ languages({ "ja":"ja/DOM/HTMLTimeElement" }) }}