Api > MLCelestialData > ApplyTimeOffset()
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:⚓︎
Name | Type | Description |
---|---|---|
offset | number | Time offset in seconds. |
Usage⚓︎
---@type MLCelestialData
local mlcelestialdata;
---@type number
local offset;
mlcelestialdata.ApplyTimeOffset(offset)