os.time

From GMod Wiki

Revision as of 18:20, 5 October 2009 by Manadar (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax os.time( [ Table index ] )
Where is this used?
Description:
Gets the current time (Seconds from the unix epoch).
Returns: Integer
Part of Library: os
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Os.time]Os.time [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the results of OS.Time into console.
Used onNewerShared.png
Code
 
Msg(os.time())
 
OutputThe operating system time


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox