Michael Anckaert <michael.ancka...@sinax.be> added the comment:
I would support this addition. The timedelta class already has accessors for days and seconds, why not for hours and minutes? The implementation should make use of the idiomatic way as Serhiy mentioned. >>> timedelta(hours=25).seconds // 3600 1 Is wrong, it should be >>> timedelta(hours=25) // timedelta(hours=1) 25 >>> timedelta(hours=24) // timedelta(hours=1) 24 ---------- nosy: +michaelanckaert _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37914> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com