String.FormattedTime

From GMod Wiki

Jump to: navigation, search
Function
Syntax String.FormattedTime( String TimeInSeconds, String Format )
Where is this used?
Description:
Given a time in seconds, returns formatted time.
Returns: String FormattedTime
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.FormattedTime]String.FormattedTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionOne of many examples of how to use string.FormattedTime
Used onNewerShared.png
Code
string.FormattedTime( 123.456, "%02i:%02i:%02i")
Output"02:03:45"
DescriptionOne of many examples of how to use string.FormattedTime
Used onNewerShared.png
Code
string.FormattedTime( 123.456, "%02i:%02i")
Output"02:03"
DescriptionOne of many examples of how to use string.FormattedTime
Used onNewerShared.png
Code
string.FormattedTime( 123.456, "%2i:%02i")
Output"2:03"
DescriptionOne of many examples of how to use string.FormattedTime
Used onNewerShared.png
Code
string.FormattedTime( 123.456 )
Output{h = 0, m = 2, s = 3, ms = 45}
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox