Skip to content

calendarZonedDateTime

const calendarZonedDateTime: RegExp = /^(\d{4,6})-(\d{2})-(\d{2})T(\d{2}:\d{2}(?::\d{2}(?:[.,]\d{1,9})?)?)((?:[+-]\d{2}:\d{2}(?::\d{2}(?:[.,]\d{1,9})?)?)|[Zz])?\[u-ca=([a-z][a-z0-9-]*)(?:;era=([a-z]+))?\]\[([^[\]]+)\]$/;
import { calendarZonedDateTime } from "@northguild/gmt/regex/calendar-zoned-date-time";

GMT’s own calendar-annotated ZonedDateTime string — the zoned sibling of calendarDate

calendarZonedDateTime.test("60") // false
calendarZonedDateTime.test("202") // false

regex/calendar-zoned-date-time.ts