4

如何编写 cron 表达式以在每 6 个月的晚上 16 点触发一个函数?

4

3 回答 3

5

0 0 16 1 1/6 ? *

CronMaker 可以在未来帮助您。 http://www.cronmaker.com/

于 2014-03-13T09:44:06.203 回答
0

0 0 16 ? 1/6 MON#1 *

To execute the first monday of every six months

next execution date :

  1. Monday, July 7, 2014 4:00 PM
  2. Monday, January 5, 2015 4:00 PM
  3. Monday, July 6, 2015 4:00 PM
  4. Monday, January 4, 2016 4:00 PM
  5. Monday, July 4, 2016 4:00 PM
于 2014-03-13T09:35:19.550 回答
0

这应该可以解决问题0 0 16 1 1/7 ?

于 2014-03-13T09:32:24.547 回答