Garry's Mod Wiki

os.time

number os.time( table dateData = nil )

Description

Returns the system time in seconds past the unix epoch. If a table is supplied, the function attempts to build a system time with the specified table members.

Arguments

1 table dateData = nil
Table to generate the time from. This table's data is interpreted as being in the local timezone. See Structures/DateData

Returns

1 number
Seconds passed since Unix epoch

Example

Prints out the current time, in seconds past the unix epoch.

print( os.time() )
Output: 1581691801

Page Links


Special Pages


Wikis

?

Render Time: 26ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 12