Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
iana-tz-data
Advanced tools
Readme
Unofficial JSON distribution of zdumped IANA timezone data.
It should be noted that a tabular text file (not JSON) is the "official" format for the IANA timezone data. The JSON data contained in this package is provided as a convenience for the development community, and is programatically generated from the corresponding text files using the JSON conversion utility provided here.
No code other than the conversion utility is included.
The official data has additional information and has a different structure than what's distributed here. The official data has Zones and Rules
A JSON representation of the timezone transitions (actually, the output of zdump -v
) for every timezone ids, which is what moment-timezone, globalize, and perhaps other JavaScript library use to calculate a date in a specific timezone ids. The structure looks like the below.
{
"zoneData": {
...
"America": {
...
"New_York": {
abbrs: [],
untils: [],
offsets: [],
isdsts: []
}
...
}
}
}
Latest official release is version 2019b, published on 2019-07-01.
Installation using NPM:
npm install --save iana-tz-data
We follow a semver corresponding version based on the official version. The major version corresponds to the year and the minor corresponds to the letter. The patch version is independent and used for any necessary package fixes.
Official version | Our corresponding semver version |
---|---|
2019b | 2019.1 |
2018i | 2018.8 |
2018g | 2018.6 |
2018f | 2018.5 |
2018e | 2018.4 |
2018d | 2018.3 |
2018c | 2018.2 |
2018b | 2018.1 |
2017c | 2017.2 |
2017b | 2017.1 |
2017a | 2017.0 |
On your application, you can access IANA timezone JSON data by importing the "iana-tz-data"
module.
import IANATimezoneData from "iana-tz-data";
MIT © Rafael Xavier de Souza
FAQs
Npm module for IANA unofficial JSON data
The npm package iana-tz-data receives a total of 16,055 weekly downloads. As such, iana-tz-data popularity was classified as popular.
We found that iana-tz-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.