我需要在2017年10月至2018年2月的日期范围内每10分钟生成一次cron表达式。
我尝试了以下表达式:
0 10 0 ? 10-2 * 2017-2018,
但这不是一个有效的表达方式。我收到以下错误消息:
(月份)-范围不支持的值“10-2”。),
请帮帮忙。
发布于 2017-10-31 15:28:42
试着使用这个:
*/10 * * 2-10 * 2017,2018 command here
来自nncron.ru页面:
* * * * * *
| | | | | |
| | | | | +-- Year (range: 1900-3000)
| | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month (range: 1-31)
| +---------- Hour (range: 0-23)
+------------ Minute (range: 0-59)
如果要测试其他格式,请使用此页面http://cronsandbox.com/
https://stackoverflow.com/questions/47032916
复制相似问题