I am using Quartz.Net and I am trying to come up with a CRON expression for:
Every 2 minutes between 06:00 and 21:30.
Is there such an expression?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this may help http://quartznet.sourceforge.net/tutorial/lesson_6.html,with this they are using frames:s, so go to Quartz.Impl.Triggers and then and then CronTriggerImpl there is a description of the possibilities
From what I understand from it it will be something like this
"0 0/2 6-21 * * ?"This alone will not be sufficient in your case so you probably need a second one writen like this:
"0 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28 21 * * ?"little long but as far as I can make up from the documentation this would be the only solution to your problem. But probably the solution of SenorAmor is nicer