简体   繁体   English

Java Quartz Cron表达式

[英]Java Quartz cron expression

Can someone help me to figure out java quartz cron expression to set a job for every weekday from 1st of the month to 11th of the month at 2.30 pm. 有人可以帮我弄清楚java石英cron表达式来为每个工作日(每月的1月1日至每月的11点)在2.30 pm设置工作。

I could achieve from 1st to 11th or week days separately but not together. 我可以分别从1日到11日或工作日达成目标,但不能一起实现。

For all days from 1st to 11th 0 30 14 1,2,3,4,5,6,7,8,9,10,11 1/1 ? * 从1日到11 0 30 14 1,2,3,4,5,6,7,8,9,10,11 1/1 ? * 0 30 14 1,2,3,4,5,6,7,8,9,10,11 1/1 ? *

For all Week days 0 30 14 ? * MON,TUE,WED,THU,FRI * 对于所有工作日0 30 14 ? * MON,TUE,WED,THU,FRI * 0 30 14 ? * MON,TUE,WED,THU,FRI *

Appreciate your help 感谢您的帮助

Try this: 尝试这个:

30 14 1-11 * 1-5

See https://crontab.guru/#30_14_1-11_ *_1-5 参见https://crontab.guru/#30_14_1-11_ * _1-5

It says future executions will be like this: 它说未来的处决将是这样的:

next at 2018-02-13 14:30:00
then at 2018-02-14 14:30:00
then at 2018-02-15 14:30:00
then at 2018-02-16 14:30:00
then at 2018-02-19 14:30:00

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM