OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

py3-tz-2026.1pl1

Python API for dealing with timezones

Back to search · Project homepage

Description

pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher. It also solves the issue of ambiguous times at the end of daylight savings, which you can read more about in the Python Library Reference (datetime.tzinfo). Projects using Python 3.9 or later should be using the support now included as part of the standard library, and third party packages work with it such as https://pypi.org/project/tzdata/. pytz offers no advantages beyond backwards compatibility with code written for earlier versions of Python.

Package information

Ports path
devel/py-tz
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, lang/python
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Runtime

Build

Test

Used by (52 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON