wok annotate python-pytz/description.txt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (20 months ago)
parents
children
rev   line source
Hans-G?nter@25231 1 Pytz brings the Olson tz database into Python.
Hans-G?nter@25231 2 This library allows accurate and cross platform timezone calculations using
Hans-G?nter@25231 3 Python 2.4 or higher.
Hans-G?nter@25231 4 It also solves the issue of ambiguous times at the end of daylight saving time,
Hans-G?nter@25231 5 which you can read more about in the Python Library Reference (datetime.tzinfo).
Hans-G?nter@25231 6
Hans-G?nter@25231 7 Almost all of the Olson timezones are supported.
Hans-G?nter@25231 8
Hans-G?nter@25231 9 Note
Hans-G?nter@25231 10
Hans-G?nter@25231 11 This library differs from the documented Python API for tzinfo implementations;
Hans-G?nter@25231 12 if you want to create local wallclock times you need to use the localize()
Hans-G?nter@25231 13 method documented in this document.
Hans-G?nter@25231 14 In addition, if you perform date arithmetic on local times that cross DST
Hans-G?nter@25231 15 boundaries, the result may be in an incorrect timezone (ie. subtract 1 minute
Hans-G?nter@25231 16 from 2002-10-27 1:00 EST and you get 2002-10-27 0:59 EST instead of the
Hans-G?nter@25231 17 correct 2002-10-27 1:59 EDT).
Hans-G?nter@25231 18 A normalize() method is provided to correct this.
Hans-G?nter@25231 19 Unfortunately these issues cannot be resolved without modifying the Python
Hans-G?nter@25231 20 datetime implementation (see PEP-431).