Message350187
It was already proposed several times before.
The problem is that what do you expect to get from timedelta(hours=24).hours?
The idiomatic way to convert a timedelta object to a number of hours is:
td = timedelta(...)
number_of_hours = td // timedelta(hours=1) |
|
Date |
User |
Action |
Args |
2019-08-22 11:52:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, belopolsky, p-ganssle, elinaldosoft |
2019-08-22 11:52:11 | serhiy.storchaka | set | messageid: <1566474731.12.0.0551031967399.issue37914@roundup.psfhosted.org> |
2019-08-22 11:52:11 | serhiy.storchaka | link | issue37914 messages |
2019-08-22 11:52:11 | serhiy.storchaka | create | |
|