Jump to content

Time minutes and seconds


Recommended Posts

That function returns milliseconds, you must convert it to seconds/minutes.

You may use this function I made to convert it.

function convertTime ( ms ) 
    local min = math.floor ( ms / 60000 ) 
    local sec = math.floor ( ( ms / 1000 ) % 60 ) 
    return min, sec 
end 

Link to comment
That function returns milliseconds, you must convert it to seconds/minutes.

You may use this function I made to convert it.

function convertTime ( ms ) 
    local min = math.floor ( ms / 60000 ) 
    local sec = math.floor ( ( ms / 1000 ) % 60 ) 
    return min, sec 
end 

thanks my friend

admin please close the topic

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...