Official timezone database for Python.
Project description
Official timezone database for Python.
Supports Python 2.7+ and 3.5+.
Installation
pip install pytzdata
Usage
You can access the content of a specific timezone file by using the tz_file() function:
from pytzdata import tz_file
with tz_file('Europe/Paris') as f:
# Do something with the file
If you just want to know the path to a specific timezone file, you may use the tz_path() function:
from pytzdata import tz_path
tz_path('Europe/Paris')
Release
To make a new release just follow these steps:
make data
Update version numbers in pytzdata/version.py and tests/test_version.py
make tox
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytzdata-2016.9.1.tar.gz
(235.0 kB
view hashes)
Built Distribution
Close
Hashes for pytzdata-2016.9.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c36c8d007a51e064bcc9df20c92d138b0647ac3362d0bbf6a196f169a2a10e4e |
|
MD5 | 8ee63e4e1194edf2d1b63dcbb64379ba |
|
BLAKE2b-256 | 18764d5ea1306f5cff47e2f287fc19385c35216004123e44e9cdb328a63162a6 |