Omit cycle in to_String

master
orwell96 2019-06-19 10:37:00 +02:00
parent d569863434
commit 8c91f64c2b
1 changed files with 2 additions and 2 deletions

View File

@ -136,9 +136,9 @@ function rwt.adjust(rwtime, reftime, thresh)
return cp
end
function rwt.to_string(rwtime, places)
function rwt.to_string(rwtime, no_cycle, places)
local pl = places or 2
if rwtime.c~=0 or pl>=3 then
if (rwtime.c~=0 or pl>=3) and not no_cycle then
return string.format("%d;%02d;%02d", rwtime.c, rwtime.m, rwtime.s)
elseif rwtime.m~=0 or pl>=2 then
return string.format("%02d;%02d", rwtime.m, rwtime.s)