Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }