Package Info

python-tzlocal


tzinfo object for the local timezone


Development/Libraries/Python

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.


License: MIT
URL: https://github.com/regebro/tzlocal

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
2.0.0-bp153.1.20 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
2.0.0-bp152.2.4 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
1.4-bp151.4.3.1 info openSUSE-2019-1867 2019-08-13 15 SP1 Update
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
1.4-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
1.4-bp150.3.6.1 info openSUSE-2019-1550 2019-06-12 15 Update
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
1.4-bp150.3.3.1 info openSUSE-2019-1549 2019-06-12 15 Update
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
1.4-bp151.2.10 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal
1.4-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-tzlocal
  • python3-tzlocal