Path to this page:
./
time/py-tzlocal,
Python tzinfo object for the local timezone
Branch: pkgsrc-2020Q1,
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:[
devel/py-setuptools]
Master sites:
SHA1: 4b8bbecdfbe748594862deed4f6a4399f604926a
RMD160: 68f4c803a339ab89d365066a9fcb0f71ff9443c9
Filesize: 21.523 KB
Version history: (Expand)
- (2020-04-20) Package has been reborn
- (2020-04-19) Package added to pkgsrc.se, version py37-tzlocal-2.0.0 (created)