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); }