Tzinfo object for the local timezone
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.
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.
- Links to openSUSE:...1:Update / python-tzlocal.10838
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP1:Update/python-tzlocal && cd $_
- Create Badge
Refresh
Refresh
Source Files (show unmerged sources)
Filename | Size | Changed |
---|---|---|
python-tzlocal.changes | 0000002236 2.18 KB | |
python-tzlocal.spec | 0000002706 2.64 KB | |
tzlocal-1.4.tar.gz | 0000015279 14.9 KB |
Latest Revision
Marcus Meissner (msmeissn)
accepted
request 723120
from
Marcus Meissner (msmeissn)
(revision 1)
Set link to python-tzlocal.10838 via maintenance_release request
Comments 0