Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何编写会触发的 cron 表达式(对于quartz.net,但这无关紧要):
每个工作日从早上 8 点到晚上 7 点半小时一次
测试:
0 0/30 8-18 ? * 1-5
注意:最后一个触发器将在 18:30 触发,而不是 19:00。如果您更改为:
0 0/30 8-19 ? * 1-5
最后触发时间为 19:30。我不相信有办法在 19:00 以半小时为间隔进行最后一次触发。