‹ All natives
Namespace: TIME
API set: server
Language: Luau Improve
now
now(): number
Returns the game server's time.
Returns#
number: seconds, advanced once per tick
Example#
local start = now()
wait(2)
log(now() - start)
Notes#
- This is not a date. For the date, Luau provides
os.time() and os.date().