CRON syntax (Quartz, 7 fields)

CRON syntax (Quartz, 7 fields)

Webhooks Pro uses Quartz 7-field CRON. Times are UTC. Minutes must stay on a 5-minute grid (*/5 or 0,5,10,…,55). The 6-field form (no year) is also accepted; year defaults to *.


The 7 fields

second minute hour day-of-month month day-of-week year 0 0 12 ? * MON-FRI *

Field

Allowed values

Notes

Field

Allowed values

Notes

second

0

Always 0. Sub-minute precision is not supported.

minute

0,5,10,…,55 or */N where N ∈ {5, 10, 15, 20, 30}

Must stay on a 5-minute grid. Other values are silently dropped at fire time (the form blocks most of them on save, but pasted custom-cron can slip through).

hour

0–23, *, */N, lists, ranges

UTC.

day-of-month

1–31, *, or ?

Use ? when day-of-week is set.

month

1–12, JAN–DEC, *

Lists and ranges allowed.

day-of-week

0–6, SUN–SAT, *, ?, ranges, lists

Use ? when day-of-month is set.

year

* or specific year

Optional — 6-field form (no year) is also accepted; year defaults to *.


The ? placeholder

Quartz forbids both day-of-month and day-of-week from being specific at the same time. One must be ? (no specific value).

Goal

day-of-month

day-of-week

Goal

day-of-month

day-of-week

The 1st of every month

1

?

Every Monday

?

MON

The 15th of every month, regardless of weekday

15

?

Every weekday

?

MON-FRI

If you set both to specific values, the schedule will not save.


Operators

Operator

Meaning

Example

Reads as

Operator

Meaning

Example

Reads as

*

Every value in this field

* * * * * ?

(illegal — sub-minute)

,

List

0 0 9,12,17 ? * MON-FRI *

09:00, 12:00, 17:00 UTC on weekdays

-

Range

0 0 9-17 ? * MON-FRI *

Every hour from 09:00 to 17:00 inclusive on weekdays

*/N

Every N starting at 0

0 */15 * * * ? *

Every 15 minutes (must remain on the 5-min grid; only N ∈ {5,10,15,20,30})

M-N/S

Every S in range M–N

0 0 9-17/2 ? * * *

Every 2 hours from 09:00 to 17:00

?

No specific value (only for day-of-month / day-of-week)

0 0 9 ? * MON *

09:00 every Monday


Day-of-week names

Names accepted (case-insensitive):

SUN MON TUE WED THU FRI SAT

Numeric (0 = Sunday):

0 1 2 3 4 5 6

Use whichever reads better. MON-FRI is clearer than 1-5.


Common building blocks

You want

CRON

You want

CRON

Every 5 minutes

0 */5 * * * ? *

Every 15 minutes

0 */15 * * * ? *

Every hour at :00

0 0 * * * ? *

Every hour at :30

0 30 * * * ? *

Every day at 09:00

0 0 9 * * ? *

Every weekday at 09:00

0 0 9 ? * MON-FRI *

Every Monday at 09:00

0 0 9 ? * MON *

First of every month at 00:00

0 0 0 1 * ? *

Every Monday and Thursday at 14:30

0 30 14 ? * MON,THU *

New Year UTC

0 0 0 1 1 ? *

For ready-made business-hour schedules with timezone conversion, see Schedule examples.


How the form helps

Two input modes:

Builder (default)

Tabs for Minutes / Hours / Day / Month. Each field offers:

  • Every — *

  • Every N — */N

  • Specific values — comma-separated picker

The Day tab combines Day-of-Month and Day-of-Week. Selecting one clears the other (Quartz forbids both being specific).

Custom cron

Paste a Quartz expression directly. Useful for:

  • Translating an existing CRON from another system.

  • Patterns the Builder can't express (e.g. complex ranges).

Preview

Below the inputs you see:

  • The composed CRON expression.

  • A Cronstrue label — human-readable translation ("At 12:00, Mon–Fri"). Trust this for the meaning of the schedule.

  • A UTC marker — reminder that you didn't enter local time.

A known cosmetic bug: for some Quartz expressions using ?, the preview's date list may show consecutive days even though the schedule will only fire on matching ones. The Cronstrue label is always correct — trust the label, not the date list.


Validation

  • The form parses your expression on save and reports errors inline.

  • 6-field expressions (no year) are accepted; year is filled with *.

  • Sub-minute schedules (e.g. 1 0 * * * ? *) are rejected.

  • Off-grid minutes (e.g. 3 0 * * * ? *) are rejected by the Builder. Custom-cron pasted from elsewhere can slip through; if you see your schedule never firing, check the minute field is on the 5-minute grid.


Things you might expect from Unix cron that don't apply

Unix cron / vixie-cron

Webhooks Pro / Quartz

Unix cron / vixie-cron

Webhooks Pro / Quartz

5 fields (minute hour day month dow)

7 fields (second minute hour dom month dow year)

H macro from Jenkins

Not supported

Per-user crontab

n/a

Local timezone

Always UTC

@daily, @weekly, @hourly shortcuts

Not supported — use the explicit form

Sub-minute precision

Not supported


Related