Skip to content

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.

GetWorldSeconds()

number

Log("world day", math.floor(GetWorldSeconds() / 86400))

GetContainerInfo · GetWorldItem · the Doors and containers group of the index