This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients belopolsky, elinaldosoft, p-ganssle, serhiy.storchaka
Date 2019-08-22.11:52:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566474731.12.0.0551031967399.issue37914@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2019-08-22 11:52:11serhiy.storchakasetrecipients: + serhiy.storchaka, belopolsky, p-ganssle, elinaldosoft
2019-08-22 11:52:11serhiy.storchakasetmessageid: <1566474731.12.0.0551031967399.issue37914@roundup.psfhosted.org>
2019-08-22 11:52:11serhiy.storchakalinkissue37914 messages
2019-08-22 11:52:11serhiy.storchakacreate