No votes yet

python-tz (pytz) brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher. It also solves the issue of ambiguous times at the end of daylight savings, which you can read more about in the Python Library Reference (datetime.tzinfo).

Amost all of the Olson timezones are supported.

Note that this library differs from the documented Python API for tzinfo implementations; if you want to create local wallclock times you need to use the localize() method documented in this document. In addition, if you perform date arithmetic on local times that cross DST boundaries, the results may be in an incorrect timezone (ie. subtract 1 minute from 2002-10-27 1:00 EST and you get 2002-10-27 0:59 EST instead of the correct 2002-10-27 1:59 EDT). A normalize() method is provided to correct this. Unfortunatly these issues cannot be resolved without modifying the Python datetime implementation.

This is a Python library used as a dependency by some Python softwares (python-matplotlib >= 1.3.x, etc). If you want to install for other use, enable the repository and install it by typing "apt-get install" as root in MeeGo Harmattan Terminal.



Application versions: 
File python-tz_2012c-1harmattan1_all.deb329.89 KB16/10/2014 - 02:26

- python-tz 2012c (16/04/2012) : first release for MeeGo 1.2 Harmattan (14/10/2014). Without tzdata dependency, so pytz/zoneinfo is used.