对传入的时间进行处理,转成字符串00:00:00。通过调用回调函数来控制一秒刷新一次。
转换算法:
-
h = math.floor(time / 3600),
-
m = math.floor((time % 3600) / 60),
-
s = math.floor((time % 3600) % 60)。
对传入的时间进行处理,转成字符串00:00:00。通过调用回调函数来控制一秒刷新一次。
转换算法:
h = math.floor(time / 3600),
m = math.floor((time % 3600) / 60),
s = math.floor((time % 3600) % 60)。