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 catlee
Recipients brett.cannon, catlee, guettli, jribbens, skip.montanaro, tim.peters, tomster
Date 2007-11-30.20:50:12
SpamBayes Score 0.1726419
Marked as misclassified No
Message-id <1196455813.18.0.221248141219.issue1673409@psf.upfronthosting.co.za>
In-reply-to
Content
I keep needing to know the number of seconds that a timedelta represents,
so I implemented the following patch.

This returns only the integer portion, but could be modified to return a
floating point value.
Files
File name Uploaded
timedelta.diff catlee, 2007-11-30.20:50:12
History
Date User Action Args
2007-11-30 20:50:13catleesetspambayes_score: 0.172642 -> 0.1726419
recipients: + catlee, tim.peters, skip.montanaro, brett.cannon, jribbens, guettli, tomster
2007-11-30 20:50:13catleesetspambayes_score: 0.172642 -> 0.172642
messageid: <1196455813.18.0.221248141219.issue1673409@psf.upfronthosting.co.za>
2007-11-30 20:50:13catleelinkissue1673409 messages
2007-11-30 20:50:12catleecreate