<analog-clock>
An analog clock component written in plain JavaScript:
Usage
Basic usage with local time:
Providing a time attribute will set the exact time and not update the clock.
Providing an offset sets the time zone offset. The following sets the time in New York:
JavaScript
Anything you can do in HTML with attributes can also be done using the JavaScript API with properties:
; let clock = ;clockoffset = -6; documentbody;
License
BSD-2-Clause