make
creates a datetime value
(long year, long month, long day, long hour, long minute, long second, long nanoSecond, string timeZone) -> datetime
Returns a datetime with components set to the given arguments.
If resulting datetime is in a DST gap, the value is adjusted forward by the length of the gap. If resulting datetime is in a DST overlap, the earlier valid offset is used.
Returns nil
if any argument is nil
.
Parameters
Name | Type | Description |
---|---|---|
year |
long | The year to use |
month |
long | The month to use in range: 1-12 |
day |
long | The day of month to use |
hour |
long | The hour component in range: 0-23 |
minute |
long | The minute component in range: 0-59 |
second |
long | The second component in range: 0-59 |
nanoSecond |
long | The nanosecond component in range: 0-999999999 |
timeZone |
string | The time zone to use |