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.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
authority |
Authority |
undefined |
seconds |
number |
undefined |
options |
TimeOfDayOptions |
noOptions |
Returns
Section titled “Returns”void