GUIDE深度 · Deep dive

Five-Field Cron Syntax

Cron's five fields are minute 0-59, hour 0-23, day 1-31, month 1-12 and weekday 0-7 (0/7 Sunday). * means any, / is a step, - is a range and commas are lists.

更新 2026-10-31 · 公式可核验

Symbols

*: every value; */15: every 15 units.

1-5: range; 1,15: list.

Weekday 0 and 7 both mean Sunday.

Day vs weekday

When both are restricted, Vixie cron runs if either matches.

To run by weekday only, set day to *; to run by date only, set weekday to *.

FAQ

How do I run every five minutes?

*/5 * * * *.

How do I run at 9am on weekdays?

0 9 * * 1-5.

Sources

Related calculators

Cron Expression ExplainerEnter a five-field cron expression to validate it and show the next five runs.

More guides

Common Cron SchedulesRead guide