npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

timezone-data

v0.1.9

Published

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

Downloads

175

Readme

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"
},