➜

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.

作者 jamesh
收信人 Neil Muller, amaury.forgeotdarc, andersjm, barry, belopolsky, cameron, catlee, davidfraser, eric.araujo, erik.stephens, guettli, hodgestar, jamesh, jribbens, loewis, mark.dickinson, ncoghlan, pboddie, pitrou, python-dev, r.david.murray, rhettinger, steve.roberts, techtonik, tim.peters, tomster, vstinner, werneck
日期 2012-06-12.03:18:35
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1339471117.87.0.0351583425895.issue9527@psf.upfronthosting.co.za>
In-reply-to
内容
One problem I can see with using a fixed offset tzinfo for localtime is that it might confuse people when doing date arithmetic.  For example:

    >>> d = datetime.localtime() + timedelta(days=7)

While it will give a correct answer as a point in time it will have the wrong time zone offset if run just before a daylight saving transition, which could be just as confusing.

I'm not sure how you'd solve this without e.g. importing pytz into the standard library though.
历史
日期 用户 动作 参数
2012-06-12 03:18:39jamesh修改recipients: + jamesh, tim.peters, loewis, barry, jribbens, rhettinger, pboddie, guettli, amaury.forgeotdarc, mark.dickinson, ncoghlan, davidfraser, belopolsky, pitrou, andersjm, catlee, vstinner, techtonik, tomster, werneck, hodgestar, Neil Muller, cameron, eric.araujo, erik.stephens, steve.roberts, r.david.murray, python-dev
2012-06-12 03:18:37jamesh修改messageid: <1339471117.87.0.0351583425895.issue9527@psf.upfronthosting.co.za>
2012-06-12 03:18:37jamesh链接issue9527 messages
2012-06-12 03:18:35jamesh创建