Cron Syntax Reference
Complete reference guide for cron expression syntax and special characters.
Cron Fields
| Field | Range | Description |
|---|---|---|
| Minute | 0-59 | The minute of the hour when the command will run. |
| Hour | 0-23 | The hour of the day when the command will run (24-hour format). |
| Day of Month | 1-31 | The day of the month when the command will run. |
| Month | 1-12 | The month when the command will run. |
| Day of Week | 0-7 | The day of the week (0 and 7 are Sunday). |
Special Characters
| Character | Name | Description |
|---|---|---|
| * | Asterisk | Matches all possible values for the field. |
| , | Comma | Specifies a list of values (e.g., 1,3,5). |
| - | Hyphen | Specifies a range of values (e.g., 1-5). |
| / | Slash | Specifies step values (e.g., */5 for every 5 units). |
Month Names
Some cron implementations allow month names: JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
Day Names
Some cron implementations allow day names: SUN, MON, TUE, WED, THU, FRI, SAT