Author haypo
Recipients amaury.forgeotdarc, belopolsky, brett.cannon, catlee, erik.stephens, guettli, haypo, jribbens, lemburg, skip.montanaro, srittau, steve.roberts, tim_one, tomster
Date 2008-12-15.12:03:12
SpamBayes Score 6.28556e-10
Marked as misclassified No
Message-id <1229342593.33.0.5028608851.issue1673409@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2008-12-15 12:03:13hayposetrecipients: + haypo, lemburg, tim_one, skip.montanaro, brett.cannon, jribbens, srittau, guettli, amaury.forgeotdarc, belopolsky, catlee, tomster, erik.stephens, steve.roberts
2008-12-15 12:03:13hayposetmessageid: <1229342593.33.0.5028608851.issue1673409@psf.upfronthosting.co.za>
2008-12-15 12:03:12haypolinkissue1673409 messages
2008-12-15 12:03:12haypocreate