Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 404013 of HTMLTimeElement

  • Revision slug: Web/API/HTMLTimeElement
  • Revision title: HTMLTimeElement
  • Revision id: 404013
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment DOM/HTMLTimeElement Web/API/HTMLTimeElement

Revision Content

{{ 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" }) }}

Revision Source

<p>{{ DomRef() }}</p>
<h2 id="HTML_time_element_interface">HTML time element interface</h2>
<p>DOM time objects expose the <a class="external" href="https://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-time-element" rel="external nofollow" target="_blank" title="https://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-time-element">HTMLTimeElement</a> interface, which provides special properties (beyond the regular <a href="../../../../en/DOM/element" rel="internal">element</a> object interface they also have available to them by inheritance) for manipulating time elements.</p>
<h2 id="Properties">Properties</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Type</th>
      <th scope="col">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>dateTime</code></td>
      <td><code><a href="/en/DOM/DOMString" title="En/DOM/DOMString">DOMString</a></code></td>
      <td>Reflects the {{ htmlattrxref("datetime", "time") }} HTML attribute, containing a machine-readable form of the element's date and time value.</td>
    </tr>
  </tbody>
</table>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{ HTMLElement("time") }}&nbsp;HTML&nbsp;element</li>
  <li>{{ HTMLElement("data") }}&nbsp;HTML&nbsp;element</li>
</ul>
<div>
  {{ languages({ "ja":"ja/DOM/HTMLTimeElement" }) }}</div>
Revert to this revision