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