BSD Ports

time/py-pytz 2026.3.0.1 NetBSD

World timezone definitions, modern and historical

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
7ebcac60aa
License
mit
Categories
time, python
Package size
175.7 KiB, 1132.9 KiB installed

Description

pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.3 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).

Amost all (over 540) of the Olson timezones are supported [*].

Note that if you perform date arithmetic on local times that cross DST boundaries, the results may be in an incorrect timezone (ie. subtract 1 minute from 2002-10-27 1:00 EST and you get 2002-10-27 0:59 EST instead of the correct 2002-10-27 1:59 EDT). This cannot be resolved without modifying the Python datetime implementation. However, these tzinfo classes provide a normalize() method which allows you to correct these values.

In the other systems

SystemPortVersion
NetBSDtime/py-pytz2026.3.0.1
DragonFlydevel/py-pytz2024.2_1,1

Install

Binary package:

pkgin install py311-pytz

From pkgsrc:

cd /usr/pkgsrc/time/py-pytz && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_642026.3.0.1
NetBSD 10.1 aarch642026.2
SmartOS / illumos x86_642026.5
macOS 15 arm642026.5

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-pytz-2026.3.0.1, py313-pytz-2026.3.0.1, py314-pytz-2026.3.0.1

Commit history 3

DateCommitCreditsLog message
7ebcac60aa adam py-pytz: updated to 2026.5
2026.5 (2026e) Release
8c91d36f14 wiz py-pytz: update to 2026.4.
The usual timezone updates.
d03ec4a21b wiz py-pytz: update to 2026.3.0.1.
Timezone updates.