Cron Syntax Reference

Complete reference guide for cron expression syntax and special characters.

Cron Fields

FieldRangeDescription
Minute0-59The minute of the hour when the command will run.
Hour0-23The hour of the day when the command will run (24-hour format).
Day of Month1-31The day of the month when the command will run.
Month1-12The month when the command will run.
Day of Week0-7The day of the week (0 and 7 are Sunday).

Special Characters

CharacterNameDescription
*AsteriskMatches all possible values for the field.
,CommaSpecifies a list of values (e.g., 1,3,5).
-HyphenSpecifies a range of values (e.g., 1-5).
/SlashSpecifies 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