Static database of timezone names and offsets scraped from wikipedia, current as of January 2015
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
index.json
package.json
readme.md

readme.md

TZ-DB

A static database of timezone labels and both standard and DST offset values for each; as scraped from wikipedia.

var tz = require('tz-db');

tz.zones[407];
//=> Europe/London

tz.tz['Europe/London'];
//=> { std: '+00:00', dst: '+01:00' }

tz.tz['America/New_York'];
//=> { std: '-05:00', dst: '-04:00' }

Recompiling is easy:

cd tz-db
node src/compile.js