Skip to content

addTimeDurationChecked

addTimeDurationChecked(xSeconds, xNanos, durationNanos): object

addTimeDurationChecked performs addition 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