String.FormattedTime

From GMod Wiki

Revision as of 05:44, 2 June 2011 by ^0:|AeoN|: ^2G4MB!T (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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