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.

作者 vstinner
收信人 amaury.forgeotdarc, belopolsky, brett.cannon, catlee, erik.stephens, guettli, jribbens, lemburg, skip.montanaro, srittau, steve.roberts, tim.peters, tomster, vstinner
日期 2008-12-15.12:03:12
SpamBayes Score 6.285564e-10
Marked as misclassified
Message-id <1229342593.33.0.5028608851.issue1673409@psf.upfronthosting.co.za>
In-reply-to
内容
> The number of seconds in a day is not fixed (due to leap seconds)

POSIX timestamp doesn't count leap seconds. It looks like the datetime 
module is not aware of the leap seconds:

>>> print datetime.datetime(2006, 1, 1) - datetime.datetime(2005, 12, 
31)
1 day, 0:00:00

About my method: I finally prefer datetime/datetime or 
datetime//datetime instead of a toseconds() method. And to convert a 
timestamp to a timestamp: see my patch attached to issue #2736.
历史
日期 用户 动作 参数
2008-12-15 12:03:13vstinner修改recipients: + vstinner, lemburg, tim.peters, skip.montanaro, brett.cannon, jribbens, srittau, guettli, amaury.forgeotdarc, belopolsky, catlee, tomster, erik.stephens, steve.roberts
2008-12-15 12:03:13vstinner修改messageid: <1229342593.33.0.5028608851.issue1673409@psf.upfronthosting.co.za>
2008-12-15 12:03:12vstinner链接issue1673409 messages
2008-12-15 12:03:12vstinner创建