Does the following cron expression mean “execute every other Sunday?”
0 0 3 ? * 2/1 *
I’m trying to use it with the Spring Quartz scheduler.
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.
The expression you are asking about fires at 3 am Monday to Saturday. From the Quartz Javadoc you could try using the two expressions
0 0 3 ? * 1#1 *and0 0 3 ? * 1#3 *to execute on the 1st and 3rd Sundays of the month. TheD#Nsyntax lets you pick the Nth day D of the month.