Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.699 kB


This is a little module that allows you to look up the current time zone of a location, given it's latitude and longitude. I wrote it because the existing Node module that does this (tzwhere) was far too slow to be useful in a production setting. This module attempts to ameliorate that.


To install:

npm install tz-lookup

To use:

> var tzLookup = require("tz-lookup")
> tzLookup(42.7235, -73.6931, function(err, tz) {
>   console.log(tz)
> })
{ tzid: "America/New_York", abbr: "EDT", offset: -4 }

The data file is only loaded on-demand, so the first call to tzLookup() will take a while, but subsequent calls will go quite quickly.

Jump to Line
Something went wrong with that request. Please try again.