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.
Syntax
Section titled “Syntax”GetServerTime()Returns
Section titled “Returns”number - milliseconds
Example
Section titled “Example”local startedAt = GetServerTime()-- ... laterlocal seconds = (GetServerTime() - startedAt) / 1000See also
Section titled “See also”GetServerTick · SetTimer · FormatWorldTime · the Server and timers group of the index
