Skip to main content

Load

Loads a specified time.

Overload 1 Parameters

Parameter NameParameter TypeParameter Description
yearintThe target year
monthintThe target month
dayintThe target day

Overload 2 Parameters

Parameter NameParameter TypeParameter Description
yearintThe target year
monthintThe target month
dayintThe target day
hourintThe target hour
minuteintThe target minute
secondintThe target second

Overload 3 Parameters

Parameter NameParameter TypeParameter Description
yearintThe target year
monthintThe target month
dayintThe target day
hourintThe target hour
minuteintThe target minute
secondintThe target second
milisecondintThe target millisecond

Overload 4 Parameters

Parameter NameParameter TypeParameter Description
uUtcTimeThe UtcTime to convert to Local Time

The following example Loads the Date January 1st, 2012

JavaScript

let time = new Time()
time.Load(2012, 1, 1)

Lua

local time = Time()
time.Load(2012, 1, 1)