wok view python-pytz/description.txt @ rev 25529
created recipe for neovim-0.8.3
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 25 14:14:14 2023 +0100 (20 months ago) |
parents | |
children |
line source
1 Pytz brings the Olson tz database into Python.
2 This library allows accurate and cross platform timezone calculations using
3 Python 2.4 or higher.
4 It also solves the issue of ambiguous times at the end of daylight saving time,
5 which you can read more about in the Python Library Reference (datetime.tzinfo).
7 Almost all of the Olson timezones are supported.
9 Note
11 This library differs from the documented Python API for tzinfo implementations;
12 if you want to create local wallclock times you need to use the localize()
13 method documented in this document.
14 In addition, if you perform date arithmetic on local times that cross DST
15 boundaries, the result may be in an incorrect timezone (ie. subtract 1 minute
16 from 2002-10-27 1:00 EST and you get 2002-10-27 0:59 EST instead of the
17 correct 2002-10-27 1:59 EDT).
18 A normalize() method is provided to correct this.
19 Unfortunately these issues cannot be resolved without modifying the Python
20 datetime implementation (see PEP-431).