Path to this page:
./
time/py-tzlocal,
Python tzinfo object for the local timezone
Branch: pkgsrc-2019Q4,
Version: 2.0.0,
Package name: py37-tzlocal-2.0.0,
Maintainer: pkgsrc-usersThis 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.
Required to run:[
time/py-pytz]
Master sites:
SHA1: 4b8bbecdfbe748594862deed4f6a4399f604926a
RMD160: 68f4c803a339ab89d365066a9fcb0f71ff9443c9
Filesize: 21.523 KB
Version history: (Expand)
- (2020-01-02) Package added to pkgsrc.se, version py37-tzlocal-2.0.0 (created)