消息 [107006]
> 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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-06-04 04:42:51 | belopolsky | 修改 | recipients:
+ belopolsky, doerwalter, brett.cannon, mark.dickinson, ggenellina, pitrou, vstinner, ajaksu2, kawai, eric.araujo, rafe |
| 2010-06-04 04:42:49 | belopolsky | 修改 | messageid: <1275626569.74.0.459968436013.issue5094@psf.upfronthosting.co.za> |
| 2010-06-04 04:42:47 | belopolsky | 链接 | issue5094 messages |
| 2010-06-04 04:42:46 | belopolsky | 创建 | |
|