Message87741
I do this kind of thing a lot:
>>> from datetime import timedelta
>>> td = timedelta(days=2, seconds=14)
>>> total_duration_in_seconds = td.days * 24 * 60 * 60 + td.seconds
I would like to have a property on the timedelta object do this for me. |
|
Date |
User |
Action |
Args |
2009-05-14 16:57:57 | mw44118 | set | recipients:
+ mw44118 |
2009-05-14 16:57:57 | mw44118 | set | messageid: <1242320277.61.0.875644681622.issue6020@psf.upfronthosting.co.za> |
2009-05-14 16:57:56 | mw44118 | link | issue6020 messages |
2009-05-14 16:57:55 | mw44118 | create | |
|