BSD Ports

devel/py-tzlocal 5.2 DragonFly

Returns the tzinfo object for the local timezone

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
31.6 KiB, 162.3 KiB installed

Description

This Python module returns a tzinfo object with the local timezone information under Unix and Win-32. It requires pytz, and returns pytz tzinfo objects.

This module attempts to fix a glaring hole in pytz, that there is no way to get the local timezone information, unless you know the zoneinfo name, and under several Linux distros that's hard or impossible to figure out.

In the other systems

The newest version among them is 5.4.4, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-tzlocal5.2 behind since 2026-07-08none known-[email protected]-
FreeBSDdevel/py-tzlocal5.4.4 newestnone known-[email protected]2026-07-09
OpenBSDdevel/py-tzlocal5.4.4 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-10-23
NetBSDtime/py-tzlocal by name5.4.4 newestnone known-[email protected]2026-10-24
HardenedBSDdevel/py-tzlocal5.4.4 newestno data-[email protected]-
GhostBSDdevel/py-tzlocal5.4.4 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install py311-tzlocal

From DPorts:

cd /usr/dports/devel/py-tzlocal && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2