Local Time in European Cities Web Component
NPM Installation
Run npm i local-time-in-europe
.
Usage
First create a <local-time>
element:
<local-time></local-time>
Then add attributes to control the locale and time zone of the city.
<local-time time-zone="Europe/Athens" locale="en-GB"></local-time>
Attributes
time-zone - The time zone of the city. Must be one of the following formats from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones (TZ database name)
locale - The locale code. Must be one of the following formats from https://metacpan.org/pod/DateTime::Locale::Catalog (Local code)