在《定时执行专家 V5.0》程序内部使用了包含 6 位的 Cron表达式,第一个字段(second)没有使用。程序内部一直 second 位是 0。在 Cron表达式的界面上可以设置 5位(5个字段,不包含 second字段),暂时没有实现 "0/5" 这种间隔时间的指定方式(可以通过多选来指定,效果一样)。
/* CRON expressions
<seconds> <minutes> <hours> <days of month> <months> <days of week> .---------------- second (0 - 59) <- TimingExecuter 5.0 NOT IN USE second field
| .------------- minute (0 - 59)
| | .---------- hour (0 - 23)
| | | .------- day of month (1 - 31)
| | | | .----- month (1 - 12)
| | | | | .--- day of week (0 - 6) (Sunday = 0)
| | | | | | .-- year (from 2010 - 9999) => Optional
| | | | | | |
* * * * * * *
1 2 3 4 5 6 7 ------------------------------------------------------------------------------
s m h d m day of week
@yearly (or @annually) Run once a year 0 0 0 1 1 ?
@monthly Run once a month 0 0 0 1 * ?
@weekly Run once a week 0 0 0 ? * 0
@daily (or @midnight) Run once a day 0 0 0 * * ?
@hourly Run once an hour 0 0 * * * ?
@minute Run once a minute 0 * * * * ? Examples:
---------
CRON Description
-------------------------------------------------------------------------------
* * * * * * Every second
0 15 10 * * ? * 10:15 AM every day
0 0/5 14 * * ? Every 5 minutes starting at 2 PM and ending at 2:55 PM, every day
0 10,44 14 ? 3 WED 2:10 PM and at 2:44 PM every Wednesday of March
0 15 10 ? * MON-FRI 10:15 AM every Monday, Tuesday, Wednesday, Thursday and Friday
0 15 10 L * ? 10:15 AM on the last day of every month
0 0 12 1/5 * ? 12 PM every 5 days every month, starting on the first day of the month
0 11 11 11 11 ? Every November 11th at 11:11 AM */