Answer the question
In order to leave comments, you need to log in
How to round time in python?
Good afternoon!
For example, I have a number of seconds, 3590
, using timedelta I can get a string representation, such as 00:59:50
And I need to round up to 1 hour
Guys, tell me, is there any simple way or library to round time in Python?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question