hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

date-time-add

Adds time components to a date and time, returning a new date and time.
Parameter
Type
Description
self
dateTime
The date and time to add to.
year
number
The number of years to add. Optional.
month
number
The number of months to add. Optional.
day
number
The number of days to add. Optional.
hour
number
The number of hours to add. Optional.
minute
number
The number of minutes to add. Optional.
second
number
The number of seconds to add. Optional.
time-zone-offset
number
The time zone offset adjustment in minutes. Optional.
return
dateTime
A new date and time with the specified components added.