Skip to content

subtractTimeDurationChecked

subtractTimeDurationChecked(xSeconds, xNanos, durationNanos): object

subtractTimeDurationChecked performs subtraction with overflow detection of a timestamp and duration.

If the operation fails due to overflow the error is thrown.

bigint

number

bigint

object

nanos: number

seconds: bigint