Skip to content

matchesExpanded

matchesExpanded(expanded, date): boolean

Defined in: packages/format-cron/src/codec.ts:85

Whether date (read in local time) matches an already-expandScheduled schedule.

When both day-of-month and day-of-week are restricted (not *), a date matches if it satisfies either field — standard Vixie-cron semantics, not a plain AND of all five fields.

ExpandedCronSchedule

Date

boolean