API:TimeUtils.FormatClock
From TheWarWiki
Parent: TimeUtils - Return to API listing
No description available.
Usage
This function has not yet had its usage documented.
This method does not take any known arguments.
This method does not return any known values.
Source Code
function TimeUtils.FormatClock( time )
if time > 0 then
time = math.floor( time + 0.5 )
else
time = 0
end
local hrs = math.floor( time / 3600 )
time = time - hrs * 3600
local mins = math.floor( time / 60 )
local secs = time - mins * 60
local text = L""
if( hrs > 0 ) then
text = wstring.format(L"%d:%02d:%02d", hrs, mins, secs )
else
text = wstring.format(L"%d:%02d", mins, secs)
end
return text
end ----------------------------------------------------------------
--Upload by Lliane, <sdepiets@gmail.com> 2008/08/21
