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.

作者 r.david.murray
收信人 ajaksu2, akuchling, barry, belopolsky, brett.cannon, doerwalter, eric.araujo, python-dev, r.david.murray, tim.peters
日期 2012-06-23.15:00:05
SpamBayes Score -1.0
Marked as misclassified
Message-id <1340463606.12.0.175701196356.issue665194@psf.upfronthosting.co.za>
In-reply-to
内容
Well, I guess I'd like to keep it since it does satisfy a need in the email package: to manipulate dates in the local timezone when composing messages.  It isn't a critical need, though; the critical need is just to be able to have a datetime that has the correct timezone as its tzinfo for 'now', and your astimezone change supplies that.  On the third hand, 'util.localtime()' is a lot more intuitive then 'datetime.now().astimezone()', so I'd probably still have a util.localtime() helper even if I restricted it to only generating 'now'.

So, on balance, since the method is in and tested with the extra functionality, and that functionality will probably prove useful to programs manipulating emails, I'm coming down in favor of keeping it.
历史
日期 用户 动作 参数
2012-06-23 15:00:06r.david.murray修改recipients: + r.david.murray, tim.peters, barry, akuchling, doerwalter, brett.cannon, belopolsky, ajaksu2, eric.araujo, python-dev
2012-06-23 15:00:06r.david.murray修改messageid: <1340463606.12.0.175701196356.issue665194@psf.upfronthosting.co.za>
2012-06-23 15:00:05r.david.murray链接issue665194 messages
2012-06-23 15:00:05r.david.murray创建