From 8e382f104b784f4ae84c5cc16611fd7adfbec487 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 17 Mar 2021 21:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9timeStr=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/timeStr.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/timeStr.lua b/Zframework/timeStr.lua index 5a680912..b9d2074e 100644 --- a/Zframework/timeStr.lua +++ b/Zframework/timeStr.lua @@ -1,11 +1,11 @@ local int,format=math.floor,string.format return function(s) if s<60 then - return format("%.3fs",s) + return format("%.3fs\"",s) elseif s<3600 then - return format("%d:%.2f",int(s/60),s%60) + return format("%d'%05.2f\"",int(s/60),s%60) else 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 \ No newline at end of file