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) • 256 B
import { readRfc2822 } from "../../internal/rfc5322DateTime.js"; // src/zoned/validate/isValidRfc2822DateTime.ts function isValidRfc2822DateTime(value) { return typeof value === "string" && readRfc2822(value) !== ""; } export { isValidRfc2822DateTime };