devel/py-tz 2026.5 OpenBSD
Python API for dealing with timezones
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Last update
- Commit
d403bc2332- Categories
- devel, lang/python
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).
pytz is only here for backwards compatibility. Newer software should use "zoneinfo", included in the standard library from Python 3.9 onwards.
Install
Binary package:
pkg_add py3-tz
From the ports tree:
cd /usr/ports/devel/py-tz && make install
Dependencies
Build dependencies 5
Run dependencies 1
Required by 21
- audio/cozy
- databases/py-influxdb
- devel/py-babel
- geo/py-owslib
- geo/pygeoapi
- graphics/py-matplotlib
- math/py-pandas
- misc/freeopcua/py-opcua
- net/py-ripe.atlas.sagan
- net/py-solaredge-interface
- news/sabnzbd
- productivity/khal
- productivity/py-recurring-ical-events
- security/letsencrypt/py-acme
- security/plaso
- sysutils/py-croniter
- textproc/py-dateparser
- textproc/py-pyRFC3339
- www/py-feedgenerator
- www/py-flask-babel
- www/py-mastodon.py