New submission from Matthew Wilson <m...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com