constructor¶
Creates a new DateTimeOffset object from a JavaScript Date object.
1 | |
Creates a new DateTimeOffset object from the specified year, month, and day.
1 | |
Creates a new DateTimeOffset object from the specified year, month, day, hour, minute, second, and millisecond.
1 | |
Parameters¶
Date val
A JavaScript Date object.
number year
The year (e.g., 2024).
number month
The month (0-11, where 0 is January).
number day
The day of the month (1-31).
number hour
The hour (0-23).
number minute
The minute (0-59).
number second
The second (0-59).
number millisecond
The millisecond (0-999).
Remarks¶
Example¶
1 | |
Example¶
1 | |