Skip to main content

MLCelestialData.ApplyTimeOffset(number offset)

Applies a time offset to current time in seconds. You can use this function to change time, speed up or slow down time and solar/lunar calculations. (no relation to system time, frame rate or any other time parameters)

Parameters:

NameTypeDescription
offsetnumberTime offset in seconds.

Usage

---@type MLCelestialData
local mlcelestialdata;

---@type number
local offset;


mlcelestialdata.ApplyTimeOffset(offset)