Jan 1, 0001
Cron
| Character | Meaning |
|---|---|
| * | Any value |
| , | A list of values (comma-separated) |
| - | Range of values (dash-separated) |
| / | Step value (every nth iteration) |
| \ | Exclude a value (slash) |
| {n} | Repeat on specific days of the month for every mth |
| * | Any day of the week |
| ? | Any day of the week |
| @yearly, @monthly, etc. | Cron expression modifier (e.g., “@yearly” = run once a year at midnight on January 1st) |
| # | Comment symbol (does not affect execution) |
| Position | Description |
|---|---|
| 5 mins | Minutes (0-59) |
| Hour | Hours (0-23) |
| Day of Month | Days of the month (1-31) |
| Month | Months (1-12 or JAN-DEC) |
| Day of Week | Days of the week (0-6, where 0 and 7 are both Sunday) |
| Year | Years (0-99999) |
Example: 0 45 12 * 1-3 * will run at 45 minutes after midnight on January, February and March every day.