public CronHelper(SecondValueHolder secondValue, MinuteValueHolder minuteValue, HourValueHolder hourValue, DayValueHolder dayValue, WeekValueHolder weekValue, MonthValueHolder monthValue, YearValueHolder yearValue) { this.SecondValue = secondValue; this.MinuteValue = minuteValue; this.HourValue = hourValue; this.DayValue = dayValue; this.WeekValue = weekValue; this.MonthValue = monthValue; this.YearValue = yearValue; }
public static CronHelper EveryMonth(byte[] days, byte[] hours, byte[] minutes, byte[] seconds) { CronHelper result = new CronHelper( SecondValueHolder.FromArray(seconds), MinuteValueHolder.FromArray(minutes), HourValueHolder.FromArray(hours), DayValueHolder.FromArray(days), WeekValueHolder.FromUnknow(), MonthValueHolder.FromAll(), YearValueHolder.FromAll()); return(result); }
public static CronHelper FromTimes(ushort[] years, byte[] months, byte[] days, byte[] hours, byte[] minutes, byte[] seconds) { CronHelper result = new CronHelper( SecondValueHolder.FromArray(seconds), MinuteValueHolder.FromArray(minutes), HourValueHolder.FromArray(hours), DayValueHolder.FromArray(days), WeekValueHolder.FromUnknow(), MonthValueHolder.FromArray(months), YearValueHolder.FromArray(years)); return(result); }