Adds a specified amount of time to a given date and returns the resulting Date object.
The original date to which the value will be added.
The amount of time to add.
The unit of time to add (e.g., milliseconds, seconds, minutes). Defaults to milliseconds.
A new Date object with the added time.
4.0.0
2021-12-14
Adds a specified amount of time to a given date and returns the resulting Date object.