Enum CronFormat
- Namespace
- Quartz
- Assembly
- Quartz.dll
The field layout and day-of-week numbering a cron expression string is read with.
public enum CronFormat
Fields
Quartz = 0Quartz's own dialect: six or seven fields - seconds, minutes, hours, day-of-month, month, day-of-week and optionally year - with day-of-week numbered 1-7 starting at Sunday.
Unix = 1The Unix crontab dialect: five fields - minutes, hours, day-of-month, month, day-of-week - with no seconds and no year, and day-of-week numbered 0-7 where both 0 and 7 are Sunday.
Remarks
The format is chosen at the moment the string is read and is not carried anywhere afterwards: Parse(string, CronFormat) normalises what it reads into the canonical Quartz form, which is what CronExpressionString, the dashboard and the database all hold.
The @ macros — @yearly, @annually, @monthly, @weekly,
@daily, @midnight and @hourly — need no format: they mean the same thing in
every cron there is, so they are read by every entry point, including the XML scheduling data
files and the HTTP API.