subtractTime
The subtractTime() function subtracts a TheTime duration from a TheDate or another TheTime.
Interactive example
Syntax
Classic signature
typescript
function subtractTime<
GenericInput extends TheDate
>(
input: GenericInput,
time: TheTime
): TheDate
function subtractTime<
GenericInput extends TheTime
>(
input: GenericInput,
time: TheTime
): TheTimeCurried signature
typescript
function subtractTime<
GenericInput extends TheDate
>(
time: TheTime
): (input: GenericInput) => TheDate
function subtractTime<
GenericInput extends TheTime
>(
time: TheTime
): (input: GenericInput) => TheTimeParameters
time: Duration to subtract as aTheTime.input:TheDateorTheTimeto adjust.
Return value
A TheDate or TheTime with the duration removed.
