コピペ用のサンプルコードです。
ミリ秒を時:分:秒のフォーマットにして返します。
def millSecToStr(millSeconds):
m, s = divmod(millSeconds / 1000, 60)
h, m = divmod(m, 60)
str_duration = "%d:%02d:%02d" % (h, m, s)
return str_duration
#例 str_time = millSecToStr(10000000) print(str_time) #2:46:40 が出力されます。
