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.

8 lines (6 loc) • 265 B
import { parseInstantNanoseconds } from "../../internal/instantNanoseconds.js"; // src/precision/validate/isValidInstant.ts function isValidInstant(value) { return typeof value === "string" && parseInstantNanoseconds(value) !== null; } export { isValidInstant };