This commit is contained in:
Martin Fitzpatrick
2020-05-20 14:57:29 +02:00
parent deda7bd3b2
commit 64a6cc8ae1

View File

@@ -11,11 +11,9 @@ def hhmmss(ms):
# s = 1000
# m = 60000
# h = 360000
print(ms)
s = round(ms / 1000)
m, s = divmod(s, 60)
h, m = divmod(m, 60)
print(h, m, s)
return ("%d:%02d:%02d" % (h, m, s)) if h else ("%d:%02d" % (m, s))