Five-field cron schedule explainer
Read a five-field cron expression field by field. Check weekdays, ranges and step values before you schedule a job.
Understanding Five-Field POSIX Cron Syntax for Scheduled Jobs
From Linux crontab files and GitHub Actions workflows to Kubernetes CronJobs, Cloudflare Workers Cron Triggers, and calendar feed refresh jobs, automated schedules are written as five whitespace-separated fields: Minute (0–59), Hour (0–23), Day of Month (1–31), Month (1–12), and Day of Week (0–6 or 1–7, where 0 and 7 represent Sunday in Vixie cron).
Misreading a single field—such as swapping Minute and Hour (0 9 * * * runs once at 09:00, whereas * 9 * * * runs 60 times every minute from 09:00 through 09:59!)—is one of the most frequent causes of runaway API jobs and missed backup windows.
How to Verify Ranges, Lists, and Step Values
- Paste any five-field cron string into the input box above (for example, */15 9-17 * * 1-5 for every 15 minutes during Monday–Friday business hours).
- Check each parsed field breakdown: * matches every value, a-b defines an inclusive range, a,b,c defines a list, and */n steps by every n units starting from the field minimum.
- Confirm which time zone your scheduler executes in! GitHub Actions, Kubernetes (unless timeZone is explicitly configured), and AWS EventBridge/Cloudflare Cron Triggers evaluate cron expressions in UTC, whereas a local Linux server crontab uses system local time.
The Classic Day-of-Month vs. Day-of-Week OR Trap
In standard POSIX and Vixie cron, if BOTH Day of Month (field 3) and Day of Week (field 5) are restricted (neither is *), cron fires when EITHER condition matches (logical OR, not logical AND!). For example, 0 9 13 * 5 does NOT mean '09:00 on Friday the 13th'—it runs on the 13th of every month PLUS every Friday! To target 'third Friday of the month' cleanly in calendar systems, use an RFC 5545 RRULE (FREQ=MONTHLY;BYDAY=3FR) or check the weekday inside your script.
Frequently Asked Questions
- Why did * 3 * * * run 60 times instead of once at 03:00?
- Because * in the first field (Minute) matches every minute from 0 through 59 during hour 3. Always put a specific minute such as 0 3 * * * for once-daily execution.
- What does */15 mean in the minute field?
- It steps every 15 minutes starting at minute 0—firing at :00, :15, :30, and :45 of each matching hour.
- How does cron behave during Daylight Saving Time changes?
- Schedulers running in UTC are unaffected by DST. Local-time cron daemons can skip jobs scheduled during the missing 02:00–02:59 spring-forward hour or run twice during fall-back unless DST-aware flags are enabled.