Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function internal.temporalUtil.assertValidNanosecond
import { internal } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/index.ts";
const { assertValidNanosecond } = internal.temporalUtil;

Assert that the nanosecond value is valid.

Parameters

nanosecond: NumberOrInteger

the value to check.

Returns

the value of the nanosecond if it is valid. Exception is thrown otherwise.