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.tar.gz
(235.0 kB
view details)
File details
Details for the file pytzdata-2016.9.tar.gz.
File metadata
- Download URL: pytzdata-2016.9.tar.gz
- Upload date:
- Size: 235.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80097affe576a5ae46fe4ce0e0d9139f6c08c4de3cc948744ed64ce13dc92599
|
|
| MD5 |
8d7d94d9360747f9aa8e2375473f76a8
|
|
| BLAKE2b-256 |
f57ef13b9bbe0aec358daa17e081160dfb52288686d6eb63a4e09365c5de35e5
|