SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.
Name python-pytz
Version 2021.3
Category development
Description World Timezone Definitions for Python.
Maintainer pascal.bellard​@​slitaz.org
License MIT
Website https://pypi.org/project/pytz
Sizes
Depends onpython iconpython 
python-pytz screenshot
Download package python-pytz screenshot
Show receipt
Show files list
Show cooking log

Description

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 saving time, which you can read more about in the Python Library Reference (datetime.tzinfo).

Almost all of the Olson timezones are supported.

Note

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 result 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. Unfortunately these issues cannot be resolved without modifying the Python datetime implementation (see PEP-431).

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)