UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

9 lines (7 loc) • 386 B
import { fitsInt64 } from "../../internal/arrowTimestamp.js"; import { parseInstantNanoseconds } from "../../internal/instantNanoseconds.js"; // src/precision/validate/isValidInt64NanosecondInstant.ts function isValidInt64NanosecondInstant(isoString) { return typeof isoString === "string" && fitsInt64(parseInstantNanoseconds(isoString)); } export { isValidInt64NanosecondInstant };