Skip to main content

Official timezone database for Python.

Project description

Pytzdata Build status

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


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)

Uploaded Source

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

Hashes for pytzdata-2016.9.tar.gz
Algorithm Hash digest
SHA256 80097affe576a5ae46fe4ce0e0d9139f6c08c4de3cc948744ed64ce13dc92599
MD5 8d7d94d9360747f9aa8e2375473f76a8
BLAKE2b-256 f57ef13b9bbe0aec358daa17e081160dfb52288686d6eb63a4e09365c5de35e5

See more details on using hashes here.

Supported by

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