LogoopenSUSE Build Service > Projects
Sign Up | Log In

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.

Source Files (show merged sources derived from linked package)

Filename Size Changed Actions
python-tzlocal.changes 1.09 KB almost 3 years ago Download File
python-tzlocal.spec 2.53 KB about 3 years ago Download File
tzlocal-1.1.3.tar.gz 15.5 KB about 3 years ago Download File

Comments for home:ecsos:server:php5 (0)