Skip to content

subtractTimeChecked

subtractTimeChecked(xSeconds, xNanos, ySeconds, yNanos): bigint

subtractTimeChecked performs subtraction with overflow detection of two timestamps.

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

bigint

number

bigint

number

bigint