Files
cpython/Modules
Tim Peters f36151556f A quicker astimezone() implementation, rehabilitating an earlier
suggestion from Guido, along with a formal correctness proof of the
trickiest bit.  The intricacy of the proof reveals how delicate this
is, but also how robust the conclusion:  correctness doesn't rely on
dst() returning +- one hour (not all real time zones do!), it only
relies on:

1. That dst() returns a (any) non-zero value if and only if daylight
   time is in effect.

and

2. That the tzinfo subclass implements a consistent notion of time zone.

The meaning of "consistent" was a hidden assumption, which is now an
explicit requirement in the docs.  Alas, it's an unverifiable (by the
datetime implementation) requirement, but so it goes.
2003-01-01 21:51:37 +00:00
..
2002-12-06 12:48:53 +00:00
2000-06-30 16:09:01 +00:00
2002-07-17 16:30:39 +00:00
2002-07-17 16:30:39 +00:00
2002-11-09 19:54:06 +00:00
2002-12-06 12:48:53 +00:00
2002-12-06 12:48:53 +00:00
2002-11-08 12:53:11 +00:00
2002-12-30 16:25:41 +00:00
2002-08-07 16:21:51 +00:00
2002-12-30 22:08:05 +00:00
2002-10-30 21:08:34 +00:00
2002-07-17 16:30:39 +00:00
1996-01-26 21:10:22 +00:00
2002-12-07 14:56:36 +00:00