>_ MoriDev dev.moritools.com
5 & 6 Field · IANA TZ 100% Client-Side · Zero Upload

Cron Expression Parser & Next Run Schedule

Translate 5-field Unix, 6-field seconds-first, and AWS EventBridge cron schedules into plain English and preview the next 10 run timestamps in any IANA time zone.

Ready (Offline)
Quick Summary

Enter any 5-field crontab string (such as */15 9-17 * * 1-5), 6-field Spring or node-cron schedule with seconds, AWS cron(...) rule, or @daily/@weekly macro to verify its plain-English meaning and inspect the next 10 trigger timestamps in UTC or local IANA time zones.

A misplaced asterisk in a Kubernetes CronJob or GitHub Actions schedule turns a weekly database vacuum into an every-minute CPU storm. Worse, mixing Vixie 5-field Unix syntax with Spring/Quartz 6-field schedules shifts every column one slot to the right.

This local parser evaluates both 5-field and 6-field formats, supports step intervals (*/15), ranges (9-17), month/weekday names (MON-FRI, JAN), last-day tokens (L), and evaluates future triggers natively through Intl.DateTimeFormat across DST-aware IANA time zones.

Production Cron Scheduling Pitfalls

01. Day-of-Month + Day-of-Week OR Semantics in Standard Cron

When both Day-of-Month and Day-of-Week are non-wildcard (e.g., 0 9 15 * MON), standard Vixie cron runs on the 15th OR any Monday—not only when the 15th happens to be a Monday.

02. Daylight Saving Time (DST) Skipped or Doubled Runs

Scheduling a billing job at 02:30 in America/New_York skips execution on spring-forward Sunday and can double-fire on fall-back Sunday. Always run critical backend schedules in UTC whenever business logic allows.

03. Sunday Numbering (0 vs 7 vs Quartz 1)

Unix cron treats both 0 and 7 as Sunday (1 = Monday), while AWS EventBridge and classic Quartz treat 1 = Sunday. This parser applies AWS numbering only to AWS rules, so for Quartz use three-letter names. Using names (MON-FRI, SUN) removes numeric ambiguity completely.

Cron Field Bounds & Special Tokens

Field Allowed Range Supported Tokens
Second (6-field only) 0–59 */30 (every 30 seconds)
Minute 0–59 0,15,30,45 or */15
Hour 0–23 (24-hour clock) 9-17 (business hours)
Day of Month 1–31 1,15 or L (last day of month)
Month 1–12 or JAN–DEC 1,4,7,10 (quarterly)
Day of Week 0–6 (0/7=Sun) or SUN–SAT MON-FRI or 1-5 (weekdays)

Worked Engineering Examples

Weekday Business-Hours Polling Every 15 Minutes

Input
*/15 9-17 * * 1-5 (Zone: America/New_York)
Output
Every 15 minutes past hour 9-17, Monday through Friday.

Confirms boundary hours (09:00 through 17:45) and verifies weekend exclusion before committing the workflow YAML.

Month-End Financial Reconciliation

Input
0 23 L * *
Output
At 23:00, on the last day of the month.

The L token adapts cleanly to 28-, 29-, 30-, and 31-day months including leap years.

Frequently Asked Questions

How does the parser distinguish 5-field Unix cron from 6-field cron?

Whitespace-separated token count decides automatically: 5 tokens parse as minute–hour–dom–month–dow, while 6 tokens add leading seconds. A ? in the third or fifth position marks an AWS EventBridge rule, whose sixth field is the year.

Are preset macros like @hourly, @daily, and @weekly supported?

Yes. Standard shortcuts (@hourly, @daily, @midnight, @weekly, @monthly, @yearly, @annually) expand automatically to their 5-field equivalents.

Why does switching time zones change the UTC timestamps of the next 10 runs?

A schedule like 0 9 * * * triggers at 09:00 wall-clock time in the selected IANA zone, which maps to 14:00Z (EST) or 13:00Z (EDT) for America/New_York and 01:00Z for Asia/Shanghai.

What does the question mark (?) wildcard mean?

Quartz and AWS cron use ? in Day-of-Month or Day-of-Week to signify "no specific value". Here it behaves like *.

Continue Your Workflow

24 offline developer utilities