This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 belopolsky
收信人 ajaksu2, belopolsky, brett.cannon, doerwalter, eric.araujo, ggenellina, kawai, mark.dickinson, pitrou, rafe, vstinner
日期 2010-06-04.04:42:44
SpamBayes Score 0.039996095
Marked as misclassified
Message-id <1275626569.74.0.459968436013.issue5094@psf.upfronthosting.co.za>
In-reply-to
内容
> 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:51belopolsky修改recipients: + belopolsky, doerwalter, brett.cannon, mark.dickinson, ggenellina, pitrou, vstinner, ajaksu2, kawai, eric.araujo, rafe
2010-06-04 04:42:49belopolsky修改messageid: <1275626569.74.0.459968436013.issue5094@psf.upfronthosting.co.za>
2010-06-04 04:42:47belopolsky链接issue5094 messages
2010-06-04 04:42:46belopolsky创建