...
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user