Message107006
> So you want a third argument that lets you flag if the timezone is DST or not?
The third argument is not a flag, it is a timedelta just like the offset. I am attaching a python prototype for clarity. (See datetimeex.py.)
Conceptually, a 3-argument timezone is very simple: tzinfo defines three abstract methods: utcoffset(..), tzname(..), and dts(..). The proposed concrete implementation lets allows the user to provide constant values to be returned from each of these methods. |
|
Date |
User |
Action |
Args |
2010-06-04 04:42:51 | belopolsky | set | recipients:
+ belopolsky, doerwalter, brett.cannon, mark.dickinson, ggenellina, pitrou, vstinner, ajaksu2, kawai, eric.araujo, rafe |
2010-06-04 04:42:49 | belopolsky | set | messageid: <1275626569.74.0.459968436013.issue5094@psf.upfronthosting.co.za> |
2010-06-04 04:42:47 | belopolsky | link | issue5094 messages |
2010-06-04 04:42:46 | belopolsky | create | |
|