修改timeStr输出的时间字符串格式
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
local int,format=math.floor,string.format
|
local int,format=math.floor,string.format
|
||||||
return function(s)
|
return function(s)
|
||||||
if s<60 then
|
if s<60 then
|
||||||
return format("%.3fs",s)
|
return format("%.3fs\"",s)
|
||||||
elseif s<3600 then
|
elseif s<3600 then
|
||||||
return format("%d:%.2f",int(s/60),s%60)
|
return format("%d'%05.2f\"",int(s/60),s%60)
|
||||||
else
|
else
|
||||||
local h=int(s/3600)
|
local h=int(s/3600)
|
||||||
return format("%d:%d:%.2f",h,int(s/60%60),s%60)
|
return format("%d:%.2d'%05.2f\"",h,int(s/60%60),s%60)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user