Tzinfo object for the local timezone
https://pypi.python.org/pypi/tzlocal/
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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
8
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:16.0:FactoryCandidates/python-tzlocal && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
4.3.tar.gz | 0000024147 23.6 KB | |
python-tzlocal.changes | 0000009488 9.27 KB | |
python-tzlocal.spec | 0000002807 2.74 KB |
Latest Revision
Dominique Leuenberger (dimstar_suse)
accepted
request 1084231
from
Dirk Mueller (dirkmueller)
(revision 16)
- update to 4.3: * Improved the error message when the ZoneInfo cannot be found * Don't error out because we find multiple possible timezones for a symlink.
Comments 0