Skip to content

@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

ParameterTypeDescription
inputDateStarting date
incrementTimeIncrementAmount of time to increment

Returns

Date

Adjusted date.

Remarks

Negative values will subtract from the starting date