Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timezone-data

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-data

This is a list of time zones from release 2022b of the tz database.

  • 0.1.8
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Note: in order to reduce package size there are some fields that if they don't have a value or they value can be infered from other field they are not included in the JSON list.

The fields in the array are as follows:

  • tz: contains the time zone code. Always present.
  • label: Only present in no deprecated time zones. Time zone Friendly name that can be shown to the user.
  • offsetSTD: contains the offset from UTC for Standard Time. Always present.
  • offsetDST: contains the offset from UTC for Daylight Saving Time. Only present if there is a Daylight Saving Time for that time zone, otherwise you can asume its value it's the same as offsetSTD.
  • tzNameSTD: contains the time zone name for Standard Time. Always present.
  • tzNameDST: constains the time zone name for Daylight Saving Time. If it doesn't have Daylight Saving time this field is not returned and you can safely asume it's the same as tzNameSTD.
  • linkTo: constains the updated time zone code in case that the tz is deprecated. This field is only present if the tz is deprecated.

Install

npm install timezone-data --save

# or

yarn add timezone-data

Example

import tz from 'timezone-data';

// or

const tz = require('timezone-data');

These are examples of some entries of the time zone list:

{
  "tz": "America/Argentina/Buenos_Aires",
  "label": "Argentina Standard Time - Buenos Aires",
  "offsetSTD": "-03:00",
  "tzNameSTD": "-03"
},
{
  "tz": "America/Montreal",
  "offsetSTD": "-05:00",
  "offsetDST": "-04:00",
  "tzNameSTD": "Eastern Standard Time",
  "tzNameDST": "Eastern Daylight Time",
  "linkTo": "America/Toronto"
},
{
  "tz": "America/New_York",
  "label": "Eastern Time - New York",
  "offsetSTD": "-05:00",
  "offsetDST": "-04:00",
  "tzNameSTD": "Eastern Standard Time",
  "tzNameDST": "Eastern Daylight Time"
},
{
  "tz": "America/Toronto",
  "label": "Eastern Time - Toronto",
  "offsetSTD": "-05:00",
  "offsetDST": "-04:00",
  "tzNameSTD": "Eastern Standard Time",
  "tzNameDST": "Eastern Daylight Time"
},
{
  "tz": "Europe/Paris",
  "label": "Central European Time - Paris",
  "offsetSTD": "+01:00",
  "offsetDST": "+02:00",
  "tzNameSTD": "Central European Time",
  "tzNameDST": "Central European Summer Time"
},
{
  "tz": "Asia/Tokyo",
  "label": "Japan Standard Time",
  "offsetSTD": "+09:00",
  "tzNameSTD": "Japanese Standard Time"
},
{
  "tz": "Japan",
  "offsetSTD": "+09:00",
  "tzNameSTD": "Japanese Standard Time",
  "linkTo": "Asia/Tokyo"
},

Keywords

FAQs

Package last updated on 31 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc