year
number
The year component.
month
number
The month component (1-12).
day
number
The day component.
hour
number
The hour component (0-23). Optional, defaults to 0.
minute
number
The minute component (0-59). Optional, defaults to 0.
second
number
The second component (0-59). Optional, defaults to 0.
time-zone-offset
number
The time zone offset in minutes. Optional.
return
dateTime
A new date and time with the specified components.