Skip to content

DATE_PRESET_OPERATORS

const DATE_PRESET_OPERATORS: readonly ["is", "before", "after", "between"];

Defined in: filters/operators.ts:144

The date kind’s period-preset operators. Each takes unit + timeZone + anchor (+ end for between) and is resolved to a half-open instant window by an injected resolveDate.

import { DATE_PRESET_OPERATORS } from "@xtandard/lib/filters";
DATE_PRESET_OPERATORS; // → ["is", "before", "after", "between"]
(DATE_PRESET_OPERATORS as readonly string[]).includes("before"); // → true