Jump to content

طلب أكواد


Adham

Recommended Posts

مثال :

function convertTimeToSeconds(y,d,h,m,s)
local y,d,h,m,s,newTime=y or 0,d or 0,h or 0,m or 0,s or 0,0
    local newTime=newTime+(31556926*y)+(86400*d)+(3600*h)+((3600/60)*m)+(((3600/60)/60)*s)
    return math.floor(newTime)
end

print ( convertTimeToSeconds ( 0, 1, 2 ) ) -- 1 day, 2 hour
--[[ output :
93600
]]

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...