-
-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What did you do?
If I pass 32399 seconds to precisedelta (8 hours 59 minutes 59 seconds) and set minimum time to minutes, it does not round up to hours. That is, it will round 59 minutes 59 seconds to 60 minutes but doesn't take the step further to round 60 minutes to hours.
What did you expect to happen?
'9 hours'
What actually happened?
'8 hours and 60 minutes'
What versions are you using?
- OS: Debian 4.19
- Python: 3.73
- Humanize: 4.22
Please include code that reproduces the issue.
import humanize
humanize.precisedelta(32399, minimum_unit='minutes', format='%0.0f')Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working