local-time-in-europe

1.0.41 • Public • Published

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)

Package Sidebar

Install

npm i local-time-in-europe

Weekly Downloads

42

Version

1.0.41

License

ISC

Unpacked Size

2.65 kB

Total Files

4

Last publish

Collaborators

  • e18s