A simple clock component, mainly for demonstration purposes
component install ForbesLindesay/clock
Turn elements into clocks:
Elements can be a single element, a pseudo-array of elements or a css selector string.
Options is an optional object and can have the following properties:
Overrides the default method to get the current date (by default it returns now, you could make it return a different time zone).
Overrides the default format of the date, i.e. how a date is converted to a string.