os.time
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Os.time]Os.time [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the results of OS.Time into console. |
---|---|
Used on | |
Code | Msg(os.time()) |
Output | The operating system time |
Additional Notes
- If you specify the table argument it will give you the time specified by the table. The table must have fields year, month, and day, and may have fields hour, min, sec, and isdst (for a description of these fields, see the os.date function).