CronDayOfTheWeek constructor. Initializes the "day of the week" field with the provided values.
Values for the "day of the week" field
Optionaloptions: CronFieldOptionsOptions provided by the parser
Returns an array of allowed special characters for this field.
Indicates whether this field has a "last" character.
Indicates whether this field has a "question mark" character.
Indicates whether this field is a wildcard.
Returns the maximum value allowed for this field.
Returns the minimum value allowed for this field.
Returns the nth day of the week if specified in the cron expression. This is used for the '#' character in the cron expression.
The nth day of the week (1-5) or 0 if not specified.
Returns an array of allowed values for the "day of the week" field.
StaticcharsReturns the allowed characters for this field.
StaticconstraintsReturns the constraints for this field.
StaticmaxReturns the maximum value allowed for this field.
StaticminReturns the minimum value allowed for this field.
StaticvalidReturns the regular expression used to validate this field.
Instance helper that operates on this field's numeric values.
Current value to compare against
When true, search in reverse for previous smaller value
Serializes the field to an object.
StaticfindFind the next (or previous when reverse is true) numeric value in a sorted list.
Returns null if there's no value strictly after/before the current one.
Sorted numeric values
Current value to compare against
When true, search in reverse for previous smaller value
StaticsorterHelper function to sort values in ascending order.
First value to compare
Second value to compare
Represents the "day of the week" field within a cron expression. CronDayOfTheWeek