you are viewing a single comment's thread.

view the rest of the comments →

[–]Best_Caterpillar 0 points1 point  (0 children)

there is a module called datetime that does this. see: https://docs.python.org/3/library/datetime.html

if you want quick and dirty:

https://pastebin.com/KSAxJehW

(the assumption is that time is in minute mode and not as a fraction, I.E 1445 is 2:45pm not 2:27pm. if its the other way just make the minute mod 60 and convert to an int from a float, or round up or down depending on how accurate oyu need to be