local i={}i.SafeRun=function(i,...)local g,N=pcall(i,...)if not g then warn(N)end end function i.FormatTime(i)if i<=0 then return"\048 \115\101\099\111\110\100\115"else local g=string.format("\037\048\050\046\102",math.floor(i/86400))local N=string.format("\037\048\050\046\102",math.floor(i/3600-g*24))local p=string.format("\037\048\050\046\102",math.floor((i/60-g*1440)-N*60))local V=string.format("\037\048\050\046\102",math.floor(((i-g*86400)-N*3600)-p*60))return g..(" \100\097\121\115\044 "..(N..(" \104\111\117\114\115\044 "..(p..(" \109\105\110\117\116\101\115\044 "..(V.." \115\101\099\111\110\100\115"))))))end end return i
local Util = {}

Util.SafeRun = function(Function, ...)
    local Success, Error = pcall(Function, ...)
    if not Success then
        warn(Error)
    end
end

function Util.FormatTime(seconds)
    if seconds <= 0 then
        return "0 seconds"
    else
        local days = string.format("%02.f", math.floor(seconds/86400))
        local hours = string.format("%02.f", math.floor(seconds/3600 - (days*24)))
        local mins = string.format("%02.f", math.floor(seconds/60 - (days*1440) - (hours*60)))
        local secs = string.format("%02.f", math.floor(seconds - (days*86400) - (hours*3600) - (mins*60)))
        return days.." days, "..hours.." hours, "..mins.." minutes, "..secs.." seconds"
    end
end

return Util