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.

Author vstinner
Recipients amaury.forgeotdarc, belopolsky, brett.cannon, catlee, erik.stephens, guettli, jribbens, lemburg, skip.montanaro, srittau, steve.roberts, tim.peters, tomster, vstinner
Date 2008-12-15.12:03:12
SpamBayes Score 6.285564e-10
Marked as misclassified No
Message-id <>
> 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, 
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.
Date User Action Args
2008-12-15 12:03:13vstinnersetrecipients: + 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:13vstinnersetmessageid: <>
2008-12-15 12:03:12vstinnerlinkissue1673409 messages
2008-12-15 12:03:12vstinnercreate