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
收信人 belopolsky, benno, davidfraser, eric.araujo, giampaolo.rodola, kiorky, loewis, vstinner
日期 2010-06-06.00:22:48
SpamBayes Score 6.7450334e-09
Marked as misclassified
Message-id <1275783771.33.0.451230622221.issue1777412@psf.upfronthosting.co.za>
In-reply-to
内容
I see this in py3k branch on MacOS X:

[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> datetime.date(1876, 2, 3).strftime('%Y-%m-%d')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: year=1876 is before 1900; the datetime strftime() methods require year >= 1900


I like the approach taken in the David's patch.  The datetime module should stop piggybacking on the time module.
历史
日期 用户 动作 参数
2010-06-06 00:22:51belopolsky修改recipients: + belopolsky, loewis, davidfraser, benno, vstinner, giampaolo.rodola, eric.araujo, kiorky
2010-06-06 00:22:51belopolsky修改messageid: <1275783771.33.0.451230622221.issue1777412@psf.upfronthosting.co.za>
2010-06-06 00:22:48belopolsky链接issue1777412 messages
2010-06-06 00:22:48belopolsky创建