Skip to main content

Get the timezone for a location

Project description

tzgeo is a library with one simple purpose - to convert a lat/lon to a timezone - really fast!

Installation

The easiest way to install is using pip:

pip install tzgeo

Usage

Using tzgeo is very simple!

>>> import tzgeo
>>> tzgeo.tz_lookup(39.888724, -75.107952)
u'America/New_York'

If the location is invalid, or points at the ocean, tz_lookup will return None.

More Information

More information can be found on the project’s github page

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tzgeo, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size tzgeo-0.0.4-py2.py3-none-any.whl (17.0 MB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size tzgeo-0.0.4.tar.gz (17.0 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page