Skip to content

GetServerTime

The server’s clock in milliseconds.

Milliseconds since the server started - the clock the protocol carries. It wraps after about 49 days; compare differences, not absolute values, for anything long-lived.

GetServerTime()

number - milliseconds

local startedAt = GetServerTime()
-- ... later
local seconds = (GetServerTime() - startedAt) / 1000

GetServerTick · SetTimer · FormatWorldTime · the Server and timers group of the index