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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arkv/timezones

v0.0.3

Published

Auto-generated IANA timezone data with rich metadata, no dependencies, full TypeScript support, and Node/browser compatibility.

Readme

@arkv/timezones

npm size license


Automatically generated timezones from IANA DB tzdata-latest.tar.gz

  • No runtime dependencies
  • Weekly cron job to check for new IANA timezone data
  • Works in both Node.js and the browser
  • If you just need the json data - timezones.json

The fields for each timezone object are as follows:

| Field Name | Description | Example Value | | ---------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------- | | tzCode | The standard IANA Time Zone Database identifier (tz tzCode). | Europe/Sofia | | label | A display string combining the tzCode and the recorded UTC offset. | Europe/Sofia (GMT+03:00) | | utc | The UTC offset in +HH:MM or -HH:MM format, as recorded when the data was generated. | +03:00 | | locationLabel | A human-readable name for the primary city or location associated with the timezone. | Sofia | | countryCodes | An array of ISO 3166-1 alpha-2 country codes associated with this timezone. | ['KI', ...] | | geographicArea | The continent or ocean region the timezone is located in. | Europe | | type | Indicates if the entry is a Canonical timezone or a Link (an alias) to another timezone. | Canonical or Link | | parent | (Present for Link types) The tzCode of the canonical timezone that this link points to. | Europe/London | | comments | (Optional) Additional notes from the IANA database. | 'Mountain (most areas)' | | children | (Present for Canonical types) An array of tzCode values for the zones that are links pointing to this. | ['EST5EDT', ...] | | location | The raw location name used in the IANA database (e.g., the last part of the tzCode before underscores). | Sofia |

Inspired by: list of tz database in wikipedia

  • IANA DB Version: 2026d
  • Updated: Tue, 15 Sep 2026 04:35:09 GMT
  • Last Modified: Fri, 11 Sep 2026 22:36:31 GMT
  • Number of zones: 593
  • Zones: TIMEZONES.md
  • Files used from IANA DB: zone.tab, zone1970.tab, etcetera, backward

Overview

@arkv/timezones provides up-to-date information about timezones based on the IANA Time Zone Database. It carries richer detail per zone than most alternatives: type (Canonical or Link), children/parent, UTC offset, associated country codes, geographic area, location and label.

Whenever new IANA data is available, a new version of this package is automatically generated, tested and published to npm.

The package ships CommonJS, ES Modules and TypeScript definitions.

Replaces the standalone iana-db-timezones package, which is deprecated. The API is unchanged — only the package name differs.

Install

bun add @arkv/timezones
# or
npm install @arkv/timezones

Usage

Accessing the raw data

The raw timezone data is available as an object and as an ES6 Map.

import tzdb from '@arkv/timezones';

console.log(tzdb.zones['Europe/Sofia']);
/*
// => {
//   tzCode: 'Europe/Sofia',
//   type: 'Canonical',
//   label: 'Europe/Sofia (GMT+03:00)',
//   countryCodes: [ 'BG' ],
//   location: 'Sofia',
//   locationLabel: 'Sofia',
//   geographicArea: 'Europe',
//   utc: '+03:00'
// }
*/

console.log(tzdb.map.get('America/New_York'));
/*
// => {
//   children: [ 'EST5EDT', 'US/Eastern' ],
//   comments: 'Eastern (most areas)',
//   countryCodes: [ 'US' ],
//   geographicArea: 'America',
//   label: 'America/New_York (GMT-04:00)',
//   location: 'New_York',
//   locationLabel: 'New York',
//   tzCode: 'America/New_York',
//   type: 'Canonical',
//   utc: '-04:00'
// }
*/

Utility functions

Available both as named exports and on the default export.

getZone(tzCode: TimezoneCode): Timezone | null

Returns the timezone object for a given tzCode, or null if not found.

import { getZone } from '@arkv/timezones';

getZone('Europe/Sofia'); // => { ... detailed zone object ... }
getZone('Invalid/Timezone'); // => null

getZoneUTC(tzCode: TimezoneCode): string | null

Returns the recorded UTC offset for a timezone in +HH:MM or -HH:MM format, or null if the zone or offset is not available.

import { getZoneUTC } from '@arkv/timezones';

getZoneUTC('Europe/Sofia'); // => '+03:00'
getZoneUTC('Invalid/Timezone'); // => null

The offset is a snapshot taken when the data was generated, so for zones observing DST it reflects whichever side of the DST boundary the last generation ran on.

getZoneISODate(tzCode: TimezoneCode): string | null

Returns the ISO 8601 date-time string adjusted to the zone's recorded offset, or null if the zone or offset is not available. The format is YYYY-MM-DDTHH:mm:ss.sss+HH:MM or YYYY-MM-DDTHH:mm:ss.sss-HH:MM.

import { getZoneISODate } from '@arkv/timezones';

getZoneISODate('Europe/Sofia'); // => '2025-05-12T08:25:49.322+03:00'
getZoneISODate('Invalid/Timezone'); // => null

TypeScript

import type {
  CanonicalTimezone,
  LinkTimezone,
  Timezone,
  TimezoneCode,
} from '@arkv/timezones';
import { getZone, IANA_TZDB_VERSION } from '@arkv/timezones';

console.log(IANA_TZDB_VERSION); // => '2026c'

const zone: Timezone | null = getZone('Europe/London');

// Narrow the zone and TypeScript will help you from here
if (zone?.type === 'Canonical') {
  console.log(zone.children);
}

TimezoneCode is a union of every zone identifier in the data, so lookups are checked at compile time.

Regenerating the data

bun run --filter '@arkv/timezones' generate

The generator asks IANA for the archive with an If-Modified-Since header taken from previous.json and exits without writing anything when nothing changed. Set FORCE_REVALIDATE=true to skip that check.

Full timezone list

Every supported timezone, grouped by geographic area: TIMEZONES.md.