两个不同时间段的 Cron 表达式?

Cron expression for two different time slot?

如何在两个不同的时间段内设置脚本的 运行 参数,例如:从 10:3014 每 10 分钟:30 并且从 20:0023:40

根据Quartz的文档,你应该分开作业。

Tutorial 6

Note that some scheduling requirements are too complicated to express with a single trigger - such as “every 5 minutes between 9:00 am and 10:00 am, and every 20 minutes between 1:00 pm and 10:00 pm”. The solution in this scenario is to simply create two triggers, and register both of them to run the same job.

看看下面的调度程序,我没用过 class 但可能对你有用。

Javadoc DailyTimeIntervalScheduleBuilder