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 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page