HTMLTimeElement
Generated from idl/html-elements.webidl when the site was built at 7aa23e2.
HTMLTimeElement is an interface in idl/html-elements.webidl, inheriting HTMLElement, exposed in Window. What it does is on MDN; this page says what niso has of it.
Platform notes
Section titled “Platform notes”Inside a surface, a <time> with data-timer-start or data-timer-end (ms since the Unix epoch) is the platform’s self-updating timer, as long as it is a box of its own.
SwiftUI Text(date, style: .timer) in widgets and the Live Activity.
A Chronometer in the Glance widget and the ongoing notification.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| <time> | Widely available | Partial 50% 4 of 8 subtests pass | 1 |
Members
Section titled “Members”constructor
Section titled “constructor”[HTMLConstructor] constructor();Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
dateTime(<time>)