BOXUNBAOTools
Simplify everyday tasks.Back to website
ToolboxCron Schedule Preview

Cron Schedule Preview

Runs in your browser

Read a five-field cron expression in plain language and see when it will run.

How to use

What each field means

Enter minute, hour, day of month, month, and day of week, separated by spaces. Each example shows one field. Fill in the other four as well.

FieldAccepted valuesSingle-field example
1 · Minute0–590,30 runs at minute 0 and 30 of every hour.
2 · Hour0–23, using a 24-hour clock.9-17 matches every hour from 9 through 17, inclusive.
3 · Day of month1–31, the day number within the month.1,15 matches the 1st and 15th of each month. With 31 as the day, the schedule skips months without a 31st.
4 · Month1–12, or use English abbreviations from JAN through DEC.JAN,MAR and 1,3 are equivalent and match January and March.
5 · Day of week0 or 7 represents Sunday. 1–6 represent Monday through Saturday. You can also use SUN through SAT.MON-FRI and 1-5 are equivalent and match Monday through Friday.

Steps

  1. Enter a five-field expression. To match every value in a field, enter *.
  2. Under Time zone, choose the zone where the task runs. The preview defaults to your device's time zone. For a task that follows the server time zone, use the server's setting.
  3. Select Preview run times to see the description and the next 10 runs. Copy result includes both.

Example

In Asia/Shanghai time zone, enter this expression to run at 9 a.m. Monday through Friday.

0 9 * * MON-FRI

Tips

  • , lists multiple values, - selects a range, and / sets an interval. In the minute field, */15 matches 0, 15, 30, and 45, while 5-35/10 matches 5, 15, 25, and 35.
  • When both the day-of-month and day-of-week fields are restricted, either one can match. For example, 0 9 1 * MON runs at 9 a.m. on the first of each month or every Monday. To schedule by weekday alone, set the day-of-month field to *.
  • Each run time includes its GMT offset, for example GMT+8. When migrating from a schedule with seconds or a year field, check the original scheduler's rules before converting to five fields.