New programmer Posted June 7, 2013 Share Posted June 7, 2013 Hello How can I show the remainder of the minute and second time By Function getTimerDetails Link to comment
Castillo Posted June 7, 2013 Share Posted June 7, 2013 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
New programmer Posted June 7, 2013 Author Share Posted June 7, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now