@technobuddha > library > Time > Alteration
Function: addTime()
ts
function addTime(input: Date, increment: TimeIncrement): Date;Defined in: add-time.ts:32
Add units of time to a Date
Parameters
| Parameter | Type | Description |
|---|---|---|
input | Date | Starting date |
increment | TimeIncrement | Amount of time to increment |
Returns
Adjusted date.
Remarks
Negative values will subtract from the starting date