Quartz Cron expression :Run every 15 days ie twice in a month

前端 未结 4 1956
小蘑菇
小蘑菇 2021-01-02 13:15

I want to set the scheduler with a quartz cron expression which will trigger every 15 days ,for example 1st and 15th of every month.The 0 15 10 15 * ? is triggering only on

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 13:44

    0 0 1,15 * * “At 00:00 on day-of-month 1 and 15.”

    0 0 1,15 1 * “At 00:00 on day-of-month 1 and 15 in January.”

    0 0 1,15 1 6 “At 00:00 on day-of-month 1 and 15 and on Saturday in January.”

提交回复
热议问题