Cron expressions explained: five fields, examples and dialects

A cron expression describes matching calendar times. In the five-field Unix format, 0 9 * * 1-5 means 09:00 on Monday through Friday, in the scheduler's configured timezone. It says nothing about what command to run, whether that command succeeds, or how long it takes.

Use the free cron expression builder and explainer to inspect a numeric five-field schedule without signing in. The helper runs locally in your browser and never registers a job or executes a command. This guide helps you decide whether the expression you copied is the schedule you intended.

Read the five fields from left to right

PositionFieldNumeric valuesIn 0 9 * * 1-5
1Minute0–59Minute 0
2Hour0–23Hour 9
3Day of month1–31Every date
4Month1–12Every month
5Day of week0–7, with 0 and 7 both SundayMonday through Friday

An asterisk selects all values in that field. A comma combines values, a hyphen includes a range, and a slash selects steps within a wildcard or range. The builder intentionally accepts only numeric values and a documented subset of these operators. Cron implementations can also support names and extensions; a tool rejecting those does not prove that your scheduler rejects them.

The Cronie crontab manual maintained with its source documents the field layout, operators and day-matching behavior used here. Check the manual for the implementation that will actually run your job.

Common examples you can check in the builder

These are expressions only, without a command. Times are wall-clock times in the scheduler's timezone. Each example is covered by the tool's automated tests.

ExpressionMatching ruleWhat to check
* * * * *Every minuteCan the work finish or avoid overlapping itself?
*/15 * * * *Minutes 0, 15, 30 and 45 of each hourThis starts at minute 0, not 15 minutes after installation.
0 * * * *Minute 0 of every hourConfirm the timezone before comparing logs.
30 2 * * *Daily at 02:30Check the scheduler's daylight-saving policy.
0 9 * * 1-5Monday through Friday at 09:00This does not exclude public holidays.
0 0 * * 0Sunday at midnightSunday can also be written as 7 in this dialect.
0 0 1 * *First day of each month at midnightMonthly intervals have different lengths.
0 9,17 * * 1-509:00 and 17:00 on weekdaysThe hour list creates two matching times per weekday.
0 0 29 2 *February 29 at midnight in leap yearsNo February 29 match in a non-leap year.

Steps are not elapsed-time timers

For example, */23 * * * * selects minutes 0, 23 and 46 of every hour. The gap from 46 to the next hour's 0 is 14 minutes. If your requirement is “wait exactly 23 minutes after the previous run finishes,” this expression does not encode it. Choose a scheduler mechanism designed for that requirement.

The same review matters for days: an explicit 1-31/2 range selects day numbers 1, 3, 5 and so on; it does not maintain a constant duration across month boundaries. The builder expands values instead of promising a uniform interval. It rejects single-number steps such as 5/15; use an explicit range such as 5-59/15 when that is your intent.

Two restricted day fields mean OR in this dialect

Consider 0 9 1 * 1. Under the Cronie/Vixie-style rule used by this helper, it matches 09:00 on the first day of a month or on a Monday, within the selected months. It does not mean “the first Monday.” When the first is also a Monday, it is still one matching calendar minute.

Compare 0 9 * * 1, which matches Mondays, with 0 9 1 * *, which matches the first day. Keep one day field as * unless you deliberately want the combined rule. The helper rejects wildcard steps and wildcard lists in day fields because their implementation-specific interactions are easy to misread; explicit numeric ranges are supported.

Calendar validity is a separate check from numeric bounds. Day 31 is a legal day-field value, but April has no day 31. The builder rejects an expression with no possible matching date, such as 0 0 31 4 *, and warns about dates skipped in shorter months. If a weekday is also restricted, the OR branch can still match: 0 0 31 4 1 matches Mondays in April even though the day-31 branch never does.

Five-field Unix cron, Quartz and AWS are different formats

Do not fix an unfamiliar expression by blindly deleting its first or last field. First identify the scheduler, its field order and its weekday numbering.

Scheduler formatField orderCompatibility with this builder
Five-field Unix cron subset used hereMinute, hour, day of month, month, day of weekSupported numeric subset; no command text
Quartz CronTriggerSeconds, minutes, hours, day of month, month, day of week, optional yearUnsupported; seconds and special day operators change the format
Amazon EventBridge Scheduler cronMinutes, hours, day of month, month, day of week, year, inside cron(...)Unsupported; includes a year and different day-field rules

Quartz's CronTrigger documentation defines six required fields plus an optional year, weekday numbers 1–7, and operators including ?, L, W and #. In that numbering Sunday is 1, so copying a numeric weekday directly into this builder changes its meaning. Follow Quartz's guidance for day-field combinations rather than importing the Unix OR rule.

Amazon EventBridge Scheduler's schedule documentation defines its six-field cron wrapper and requires ? in one day field when the other is specified. It also documents named timezones and daylight-saving behavior. Those rules belong to EventBridge Scheduler; other AWS services may have different scheduling interfaces. Neither AWS nor Quartz expressions are converted by this tool.

Timezone and daylight-saving review

A five-field expression has no timezone field. Record the scheduler's configured timezone alongside the expression in your operational notes. Do not assume that a container, host, managed scheduler and your laptop use the same zone. A displayed 09:00 schedule is not necessarily 09:00 for each person viewing it.

Cronie's manual describes skipped local times during a forward clock change and repeated times during a backward change; verify your actual scheduler's policy. A fixed UTC configuration avoids seasonal clock shifts in that zone, but its local business-hour equivalent can move. Decide whether your requirement is a fixed UTC time, a local business time, or a duration between runs before choosing a schedule.

This helper deliberately does not calculate next-run dates, convert timezones or simulate daylight-saving transitions. Its calendar checks describe possible dates, not a guarantee that an installed scheduler will execute a job.

From a valid expression to a reliable job

Before enabling work in your own scheduler, walk through a concrete failure case. If a backup normally takes 20 minutes and starts every 15 minutes, what prevents two copies from writing the same destination? If a deployment is in progress at the matching time, should a task wait, skip or fail visibly? Those are application and scheduler decisions, not answers contained in five cron fields.

  1. Confirm the target scheduler and use its own validation with a harmless task in an isolated environment.
  2. Verify timezone, expected matching times and the calendar cases relevant to your schedule.
  3. Supply the intended working directory, executable paths and environment through that scheduler's supported configuration. Do not put credentials into an expression or paste them into this tool.
  4. Define overlap handling, retries, timeouts and idempotency. Record failures and alert on missing successful completions, not only on whether a scheduler process is alive.
  5. For backups, test a restore in isolation. A recurring start time does not prove that the backup is complete or recoverable. For PostgreSQL, compare dumps, base backups and point-in-time recovery in the PostgreSQL backup guide.

For a capacity estimate, use the backup retention storage calculator. It adds independent retained file sizes and optional overhead; it does not predict deduplicated datastore usage or verify restores.

For DeployifyNow context, read Getting Started, GitHub Integration and the current database backup guidance. The free browser pilot has its own scope and availability constraints; these examples do not promise managed databases or a general-purpose cron feature. The builder is a standalone expression helper and does not change project settings, deploy an application or configure a backup.

Return to the cron builder to compare the field values with your operational requirement, then validate again in the scheduler you own.