Skip to main content

FIELDS

Constant FIELDS 

Source
pub const FIELDS: usize = 5;
Expand description

How many fields a cron expression has here: the classic five — minute, hour, day of month, month, day of week.

Checked HERE rather than left to the crate, and the reason survives the swap even though the dialect now states it too: Vixie::MIN_FIELDS is five and its MAX_FIELDS is five as well, so the crate would refuse a sixth field on its own — but it would refuse it as a PARSE error, and the useful sentence here is that a timezone is not a sixth field because there is a word for it. One rule, said by the party that knows why.