compact-timezone | Js timezone list
compact-timezone-list1.0.6 • Public • Published4yearsagoThispackagecontainsanarrayoftimezonesbasedonconventionaloptionsfoundonline.Itdoesnotfollowanycompletedataset,butallnamesareaccordingtothetzformat:https://en.wikipedia.org/wiki/List_of_tz_database_time_zones[1]Morespecifically,thefieldsinthearrayare:offset,astringfrom"-11:00"to"+14:00"representingtheUTCoffsetlabel,areadablelabelthatcontainstheoffsetandalonger,descriptivenameofthetimezonetzCode,thevaluefromthetzstandardInstallnpm install ...
compact-timezone-list1.0.6 • Public • Published 4 years ago
This package contains an array of timezones based on conventional options found online. It does not follow any complete data set, but all names are according to the tz format: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones[1]
More specifically, the fields in the array are:
offset, a string from "-11:00" to "+14:00" representing the UTC offset label, a readable label that contains the offset and a longer, descriptive name of the timezone tzCode, the value from the tz standard Installnpm install compact-timezone-list --save
yarn add compact-timezone-list
Example:import timezones from compact-timezone-list;
import { minimalTimezoneSet } from compact-timezone-list;
Details The default export provides a long list of options, with multiple suggestions for each UTC offset. The minimalTimezoneSet export provides one option per offset type, with a favourite chosen...