public IntCronField(CronFieldType type, CronFieldKind kind, DateField dateField, string spec, params int[] values) : base(type, kind, dateField, spec) { Values = values; // For day field 31 matches last day of the month _matchLastDay = type == CronFieldType.Day && kind != CronFieldKind.AnyValue && values.Contains(31); }
public CronField(CronFieldType type, CronFieldKind kind, DateField dateField, string spec) { Type = type; Kind = kind; DateField = dateField; Spec = spec; }
public int DayNum; // number after # in spec: 'Fri#3'; -1 if not specified public DayOfWeekCronField(CronFieldKind kind, string spec, int dayNum, int[] values) : base(CronFieldType.DayOfWeek, kind, DateFields.Day, spec, VerifyValues(values)) { DayNum = dayNum; }