openRuyi Lookout
← Packages

python-tzlocal

tzinfo object for the local timezone

Current
5.3.1
Candidate
5.4.5
License
MIT

Build

TargetResultLast successful versionSucceeded at
rva23
5.3.1
rva20
5.3.1
x86_64
5.3.1

RuntimeDeps

DependencyObserved sourceCurrent requirementCandidate requirement
2026.2
3.14.9

Optional RuntimeDeps

DependencyObserved sourceCurrent requirementCandidate requirement
check-manifestUnmapped
—
Not observed
check_manifestUnmapped
—
Not observed
pyromaUnmapped
—
Not observed
9.0.3
Not observed
9.0.3
Not observed
7.1.0
Not observed
7.1.0
Not observed
3.15.1
Not observed
3.15.1
Not observed
ruffUnmapped
—
Not observed
zest.releaserUnmapped
—
Dependency conditions

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. Also, with Windows different timezone system using pytz isn’t of much use unless you separately configure the zoneinfo timezone name. With tzlocal you only need to call get_localzone() and you will get a tzinfo object with the local time zone info. On some Unices you will still not get to know what the timezone name is, but you don’t need that when you have the tzinfo file. However, if the timezone name is readily available it will be used.

Changelog

PR · 2

Checks
MonitorObservationLast checked
Checked
Checked
Checked
Checked
Not configured
No reliable monitor identity/configuration.
—
Checked
Compared same-provider, same-project SPDX metadata for this version pair.
Last attempted
Checked
Last attempted
Checked
Current source component only; local patches, build options, bundled dependencies and binary artifacts are not evaluated.
Checked