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) • 249 B
import { parseRfc3339 } from "../parse/parseRfc3339.js"; // src/zoned/validate/isValidRfc3339DateTime.ts function isValidRfc3339DateTime(value) { return typeof value === "string" && parseRfc3339(value) !== ""; } export { isValidRfc3339DateTime };