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
| Position | Field | Numeric values | In 0 9 * * 1-5 |
|---|---|---|---|
| 1 | Minute | 0–59 | Minute 0 |
| 2 | Hour | 0–23 | Hour 9 |
| 3 | Day of month | 1–31 | Every date |
| 4 | Month | 1–12 | Every month |
| 5 | Day of week | 0–7, with 0 and 7 both Sunday | Monday 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.
| Expression | Matching rule | What to check |
|---|---|---|
* * * * * | Every minute | Can the work finish or avoid overlapping itself? |
*/15 * * * * | Minutes 0, 15, 30 and 45 of each hour | This starts at minute 0, not 15 minutes after installation. |
0 * * * * | Minute 0 of every hour | Confirm the timezone before comparing logs. |
30 2 * * * | Daily at 02:30 | Check the scheduler's daylight-saving policy. |
0 9 * * 1-5 | Monday through Friday at 09:00 | This does not exclude public holidays. |
0 0 * * 0 | Sunday at midnight | Sunday can also be written as 7 in this dialect. |
0 0 1 * * | First day of each month at midnight | Monthly intervals have different lengths. |
0 9,17 * * 1-5 | 09:00 and 17:00 on weekdays | The hour list creates two matching times per weekday. |
0 0 29 2 * | February 29 at midnight in leap years | No 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 format | Field order | Compatibility with this builder |
|---|---|---|
| Five-field Unix cron subset used here | Minute, hour, day of month, month, day of week | Supported numeric subset; no command text |
| Quartz CronTrigger | Seconds, minutes, hours, day of month, month, day of week, optional year | Unsupported; seconds and special day operators change the format |
| Amazon EventBridge Scheduler cron | Minutes, 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.
- Confirm the target scheduler and use its own validation with a harmless task in an isolated environment.
- Verify timezone, expected matching times and the calendar cases relevant to your schedule.
- 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.
- Define overlap handling, retries, timeouts and idempotency. Record failures and alert on missing successful completions, not only on whether a scheduler process is alive.
- 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.