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

Mark Dickinson report at bugs.python.org
Fri Oct 21 21:28:01 CEST 2011


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

What about

def total_minutes(td):
    return td / datetime.timedelta(minutes=1)

?

----------

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


More information about the Python-bugs-list mailing list