Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setDayLength

setDayLength(authority, seconds, options?): void

Sets the real seconds a whole day takes the world’s clock, from the hour it stands at, as <Landscape dayLengthSeconds> sets it as the Landscape mounts. Throws on a length that is not finite or is shorter than shortestDaySeconds, keeping the clock’s: pause the clock with pauseDayClock instead of a length that stops it. Throws as setTimeOfDay does where no clock is found.

Parameter Type Default value
authority Authority undefined
seconds number undefined
options TimeOfDayOptions noOptions

void