string.ToMinutesSecondsMilliseconds

From GMod Wiki

Jump to: navigation, search
Function
Syntax string.ToMinutesSecondsMilliseconds( Number seconds )
Where is this used?
Description:
Similar to string.ToMinutesSeconds, but also includes milliseconds.
Returns: String
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.ToMinutesSecondsMilliseconds]String.ToMinutesSecondsMilliseconds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionConverting 125.342 seconds to m:ss:mm format.
Used onNewerShared.png
Code
print(string.ToMinutesSecondsMilliseconds( 125.342 ))
OutputPrints 2:05:34 to the console.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox