[Python-Dev] Draft PEP for time zone support. (original) (raw)
Guido van Rossum guido at python.org
Wed Dec 12 01:11:11 CET 2012
- Previous message: [Python-Dev] Draft PEP for time zone support.
- Next message: [Python-Dev] Draft PEP for time zone support.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Dec 11, 2012 at 8:07 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
Le Tue, 11 Dec 2012 16:23:37 +0100, Lennart Regebro <regebro at gmail.com> a écrit :
Changes in the
datetime
-module -------------------------------------- A newisdst
parameter is added to several of thetzinfo
methods to handle time ambiguity during DST changeovers. *tzinfo.utcoffset(self, dt, isdst=True)
*tzinfo.dst(self, dt, isdst=True)
*tzinfo.tzname(self, dt, isdst=True)
Theisdst
parameter can beTrue
(default),False
, orNone
.True
will specify that the given datetime should be interpreted as happening during daylight savings time, ie that the time specified is before the change from DST. Why is it True by default? Do we have statistics showing that Python gets more use in summer?
My question exactly.
The rest sounds good -- definitely use the system tz database on Unixy systems, pre-install on Windows and make updating easy. Some bikeshedding about static I don't really understand, so I'll leave to others.
-- --Guido van Rossum (python.org/~guido)
- Previous message: [Python-Dev] Draft PEP for time zone support.
- Next message: [Python-Dev] Draft PEP for time zone support.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]