string.ToMinutesSeconds

From GMod Wiki

Revision as of 14:59, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax string.ToMinutesSeconds( Number seconds )
Where is this used?
Description:
Returns a time formatted minutes:seconds.
Returns: String
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.ToMinutesSeconds]String.ToMinutesSeconds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

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