G.CurTime

From GMod Wiki

Jump to: navigation, search
Function
Syntax CurTime( )
Where is this used?
Description:
Gets the current time in seconds since server start. Mainly used for timers. Only runs while players are connected.
Returns: Number
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.CurTime]G.CurTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionOutputs current time to console.
Used onNewerShared.png
Code
Msg("Current time: " .. CurTime() .. "\n")
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox