subtractSeconds
Subtracts a number of seconds from a TheDate.
Interactive example
Syntax
Classic signature
typescript
function subtractSeconds<
GenericInput extends TheDate | SerializedTheDate,
GenericSecond extends number
>(
input: GenericInput,
second: GenericSecond
): TheDateCurried signature
typescript
function subtractSeconds<
GenericInput extends TheDate | SerializedTheDate,
GenericSecond extends number
>(
second: GenericSecond
): (input: GenericInput) => TheDateParameters
second: Seconds to remove.input:TheDateorSerializedTheDate.
Return value
A TheDate moved back by the given number of seconds.
