scratcher911 Posted September 13, 2012 Posted September 13, 2012 Can somebody post that function witch transfer milliseconds to format like this 00:00:00 I saw it somewhere on forum but I can't find it. Thanks, Scratcher
Castillo Posted September 13, 2012 Posted September 13, 2012 function convertTime ( ms ) if ( ms and type ( ms ) == "number" ) then local mins = math.floor ( ms / 60000 ) local hours = math.floor ( mins / 60 ) local secs = math.floor ( ( ms / 1000 ) % 60 ) return string.format ( "%s:%s:%s", hours, ( mins - hours * 60 ), secs ) end end
scratcher911 Posted September 13, 2012 Author Posted September 13, 2012 like it I have 59000 milliseconds it will show like 00:59:00. EDIT: Thanks solid!
manve1 Posted September 13, 2012 Posted September 13, 2012 function convertTime ( ms ) if ( ms and type ( ms ) == "number" ) then local mins = math.floor ( ms / 60000 ) local hours = math.floor ( mins / 60 ) local secs = math.floor ( ( ms / 1000 ) % 60 ) return string.format ( "%s:%s:%s", hours, ( mins - hours * 60 ), secs ) end end use this scratcher, this works.
Castillo Posted September 13, 2012 Posted September 13, 2012 like it I have 59000 milliseconds it will show like 00:59:00.EDIT: Thanks solid! You're welcome.
scratcher911 Posted September 13, 2012 Author Posted September 13, 2012 1 question more. What is the interior and position of bank witch uses it most of the servers?
scratcher911 Posted September 13, 2012 Author Posted September 13, 2012 Nope. Anyway I mean like SAUR and CIT
Castillo Posted September 13, 2012 Posted September 13, 2012 X: 389.99 Y: 173.72 Z: 1008.38 Interior ID: 3
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