Array of timezones with their labels, tz code, and UTC/GMT offsets.
npm install compact-timezone-listMore 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
``bash`
npm install compact-timezone-list --saveor
yarn add compact-timezone-list
javascript
import timezones from 'compact-timezone-list';
// or
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 to represent each offset. This is mostly targeted to small, western-focused apps. But, every UTC offset is included.