[New-bugs-announce] [issue6020] Create a datetime.timedelta.totalseconds property
Matthew Wilson
report at bugs.python.org
Thu May 14 18:57:57 CEST 2009
New submission from Matthew Wilson <matt at tplus1.com>:
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.
----------
components: Library (Lib)
messages: 87741
nosy: mw44118
severity: normal
status: open
title: Create a datetime.timedelta.totalseconds property
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6020>
_______________________________________
More information about the New-bugs-announce
mailing list