IANA TZ Database for Backward UTC Zones

1.0.48 · active · verified Wed Apr 22

The `tzdata-backward-utc` package provides a specialized subset of the IANA Time Zone Database, specifically containing old synonyms for `Etc/UTC` and `Etc/GMT` zones, represented as a single JSON file. Maintained by Rogier Schouten, this package is part of a larger ecosystem of `tzdata` modules designed to offer granular access to time zone data. Its current stable version is `1.0.48`, updated to IANA TZ database version `2026a`, and it generally follows the release cadence of the upstream IANA TZ database, typically updating every few months to reflect the latest time zone rules, such as recent changes for Kazakhstan or Palestine. Key differentiators include its focus on a very specific historical subset of time zone data and its direct provision of the raw IANA data as a machine-readable JSON object, primarily intended for consumption by other timezone processing libraries like `timezonecomplete`, rather than being a timezone calculation library itself.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import the `tzdata-backward-utc` JSON data in Node.js and access its content, including specific zone information and the embedded IANA TZ Database version.

const backwardUtcData = require('tzdata-backward-utc');

console.log('Loaded backward-utc timezone data (truncated):');
console.log(Object.keys(backwardUtcData).slice(0, 5).map(key => `${key}: ${JSON.stringify(backwardUtcData[key]).slice(0, 50)}...`));

// Example of accessing a specific zone, e.g., 'UTC'
const utcZoneInfo = backwardUtcData['UTC'];
if (utcZoneInfo) {
  console.log('\nInformation for UTC zone (truncated):');
  console.log(JSON.stringify(utcZoneInfo, null, 2).slice(0, 200) + '...');
} else {
  console.log('\nUTC zone information not found.');
}

// Demonstrate use of the IANA TZ Database version property (added in v1.0.46)
if (backwardUtcData.version) {
  console.log(`\nIANA TZ Database Version: ${backwardUtcData.version}`);
} else {
  console.log('\nVersion property not found (older package version).');
}

view raw JSON →