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.

Source Distribution

tzgeo-0.0.4.tar.gz (17.0 MB view hashes)

Uploaded Source

Built Distribution

tzgeo-0.0.4-py2.py3-none-any.whl (17.0 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page