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.
是否可以创建一个 CronExpression:“每天每 20 分钟开火一次,但周六 10:00 到 14:00 之间不开火”?
“0 0/20 * ? * MON-SAT”之类的东西很清楚,但不一样......
您将不得不使用两个表达式;周六一份,其他日子一份:
0 0/20 * * * SUN-FRI command 0 0/20 0-9,14-23 * * SAT command