hd-clock
The time or the date, ticking on its own. AM/PM and seconds are parts: ::part(period), ::part(seconds).
| Attribute | What it is |
|---|---|
show | What to show.One of time, date. Default time. |
seconds | Show seconds (not on e-ink).Default false. |
hour-cycle | 12 or 24 hours; auto follows the browser’s language.One of auto, 12, 24. Default auto. |
date-style | For the date: “Tuesday 6 October”, “6 Oct” or “Tuesday”.One of long, short, weekday. Default long. |
<hd-clock show="time"></hd-clock><hd-clock show="date" date-style="long"></hd-clock>