API:TimeUtils.FormatSeconds

From TheWarWiki

Jump to: navigation, search
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.FormatSeconds(time, returnStringValue)
    if not (time > 0) 
    then
        time = 0
    end
    
    time = math.floor( time + 0.9 )
    local mins = math.floor( time / 60 )
    local secs = time - mins * 60
    
    if (returnStringValue == nil or returnStringValue == true)
    then
        return TimeUtils.GetFormattedTimeString (time, mins), mins, secs
    end
        
    return time, mins, secs
end
--Upload by Lliane, <sdepiets@gmail.com> 2008/08/21


Personal tools