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 belopolsky
Recipients belopolsky, brett.cannon, catlee, erik.stephens, guettli, jribbens, lemburg, skip.montanaro, steve.roberts, tim.peters, tomster, vstinner
Date 2008-11-11.18:29:45
SpamBayes Score 0.000308175
Marked as misclassified No
Message-id <>
Chris> I keep needing to know the number of seconds that a timedelta
Chris> represents.

I propose an alternative approach that I believe will neatly solve 
fractional vs. whole seconds and multitude of conceivable toxxx methods:

Let's extend timedelta's div and floordiv methods to allow 

>>> (t - epoch) // timedelta(seconds=1)
--> whole seconds


>>> (t - epoch) / timedelta(seconds=1)
--> fractional seconds
Date User Action Args
2008-11-11 18:29:46belopolskysetrecipients: + belopolsky, lemburg, tim.peters, skip.montanaro, brett.cannon, jribbens, guettli, catlee, vstinner, tomster, erik.stephens, steve.roberts
2008-11-11 18:29:46belopolskysetmessageid: <>
2008-11-11 18:29:45belopolskylinkissue1673409 messages
2008-11-11 18:29:45belopolskycreate