Does this cron expression mean every other Sunday?

Does the following cron statement mean "execute every other Sunday?"

0 0 3 ? * 2/1 *

      

I am trying to use it with Spring Quartz scheduler.

+2


a source to share


2 answers


You are asking about fires at 3am Monday through Saturday. From the Quartz Javadoc, you can try using two expressions 0 0 3 ? * 1#1 *

and 0 0 3 ? * 1#3 *

to execute on the first and third Sundays of the month. The syntax D#N

allows you to select the Nth day of the D month.



+2


a source


No, I do not think so. I think "2/1" means "Tuesday through Sunday". I'm not sure what can be expressed as "Every other Sunday" because there must be a "week of the month" field or something.



0


a source







All Articles