timezone-data
This package contains a list of time zones from release 2022b of the IANA tz database.
Data extracted from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
The fields in the array are as follows:
tz
contains the time zone codeoffsetSTD
contains the offset from UTC for Standard TimeoffsetDST
contains the offset from UTC for Daylight Saving TimetzNameSTD
contains the time zone name for Standard TimetzNameDST
constains the time zone name for Daylight Saving TimelinkTo
constains the updated time zone code in case that the tz
is deprecated
Install
npm install timezone-data --save
yarn add timezone-data
Example
import tz from 'timezone-data';
const tz = require('timezone-data');