A Cron Expressions
cron表达式形如 0 0 12 * * ? ,由 Seconds Minutes Hours Day of month Month Day of week Year 字段构成,即几秒 几分 几时 几号 几月 周几 哪年。 字段之间使用空格分隔,每个字段可包含任意多个合法的字符。
Table A-1 Cron Expressions Allowed Fields and Values
| Name | Required | Allowed Values | Allowed Special Characters | 
|---|---|---|---|
| Seconds | Y | 0-59 | , - * / | 
| Minutes | Y | 0-59 | , - * / | 
| Hours | Y | 0-23 | , - * / | 
| Day of month | Y | 1-31 | , - * ? / L W | 
| Month | Y | 1-12 or JAN-DEC | , - * / | 
| Day of week | Y | 1-7 or SUN-SAT | , - * ? / L # | 
| Year | N | empty or 1970-2099 | , - * / |