
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
windows-iana
Advanced tools
This library exports two functions to help convert from Windows time zones to IANA time zones (based on this mapping definition).
Add the dependency to your project with npm install --save windows-iana
or yarn add windows-iana
.
The library exports findIana()
, which will return an array of possible IANA time zones, or findOneIana()
, which will return just one string.
findOneIana()
import { findOneIana } from "windows-iana";
const result = findOneIana("Romance Standard Time");
console.log(result); // "Europe/Paris"
You may also pass the territory code as a second parameter (have a look again at the mapping by unicode.org for more details).
import { findOneIana } from "windows-iana";
const result = findOneIana("Romance Standard Time", "ES");
console.log(result); // "Europe/Madrid"
findIana()
import { findIana } from "windows-iana";
const result = findIana("Romance Standard Time");
console.log(result); // ["Europe/Paris"]
You may also pass the territory code to findIana()
.
import { findIana } from "windows-iana";
const result = findIana("Romance Standard Time", "ES");
console.log(result); // ["Europe/Madrid", "Africa/Ceuta"]
findWindows()
import { findWindows } from "windows-iana";
const result = findIana("America/New_York");
console.log(result); // Eastern Standard Time
There is no territory code for this function because all IANA names map to exactly one territory.
FAQs
A small tool to convert between Windows time zones and IANA
We found that windows-iana 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.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.