[issue5788] datetime.timedelta is inconvenient to use...

Mark Dickinson report at bugs.python.org
Thu Nov 26 09:13:13 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

A late note: this would be redundant if the oft-requested division of 
timedeltas were implemented:  t.total_seconds could then be spelt

t/timedelta(seconds=1)

with the advantage that there would then be a natural way to spell 
t.total_days or t.total_hours as well.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5788>
_______________________________________


More information about the Python-bugs-list mailing list