GetWorldSeconds
The world clock the restock timers run on.
World seconds since this world’s first start, running at [world] time_ratio per real second and kept across restarts
with the rest of the level’s objects in the server’s own database. A world day is 86400.
Syntax
Section titled “Syntax”GetWorldSeconds()Returns
Section titled “Returns”number
Example
Section titled “Example”Log("world day", math.floor(GetWorldSeconds() / 86400))See also
Section titled “See also”GetContainerInfo · GetWorldItem · the Doors and containers group of the index
