Skip to content

ToolNest · Published · Updated

Understanding five-field cron expressions

Cron looks cryptic until you map each field. The parser explains a standard five-field expression and lists upcoming local times.

Before you begin

Cron Parser explains supported five-field cron expressions. Actual scheduling also depends on the scheduler's dialect, time zone and daylight-saving behavior.

Use Cron Parser

Worked example: Describe an hourly weekday job

Input
0 * * * 1-5
Expected output
A five-field schedule that runs at minute 0 of every hour on Monday through Friday.

The fields are minute, hour, day of month, month and weekday. This page explains the expression; it does not create or run a scheduled job. The execution timezone belongs to your actual scheduler, not to this parser.

Check the result

Verify the syntax supported by the receiving scheduler. Some products add a seconds field or use different day-of-week rules, so a five-field Unix expression is not universal.

If it does not work

1x is not a valid minute field. Correct typos and check bounds. When both day-of-month and weekday are restricted, the supported Unix-style matching uses OR rather than requiring both to match.

Scope and limitations

Check whether your scheduler expects five fields or includes seconds. Test the expression in that scheduler before enabling a job.

Use Time Zone Converter to check a scheduled local time against another region.

The five fields

In order: minute (0–59), hour (0–23), day of month (1–31), month (1–12), day of week (0–6, Sunday first). Stars mean “every.” Commas list values. Hyphens are ranges. Slash is a step, as in */15.

What this parser does not do

No sixth seconds field, no @hourly aliases, no cron timezone prefixes. Day-of-month and day-of-week together use a simple combined match that can differ from some Unix crons. Treat the next-run list as a helper, then confirm in the environment that will actually schedule the job.

Questions

Why did minute 99 fail?

It is outside 0–59. The parser rejects it instead of wrapping.

Related tools

Continue reading

Technical references

These instructions describe ToolNest's browser tools and their limitations. Read how examples are maintained or report a correction.

All guides