← Hashito System Home 日本語 Tools Blog
Choose when it runs
What you can write: a number (5), every value (*), a range (1-5), a list (1,3,5) and a step (*/10, 1-20/5). Day of week also accepts three-letter names such as MON and TUE.
Your cron expression
0 9 * * 1
Every Monday at 09:00
Next runs (in this device's local time)
    When you set both day of month and day of week: standard cron treats them as or, not and. So 0 9 1 * 1 runs on the 1st of the month and also on every Monday. A cron expression cannot express "only when both match".

    Frequently asked questions

    What do the five fields in a cron expression mean?

    From left to right they are minute, hour, day of month, month and day of week. For example "0 9 * * 1" means minute 0, hour 9, any day of month, any month, day of week 1 (Monday), so it runs every Monday at 09:00.

    What happens when I set both day of month and day of week?

    Standard cron treats them as or, not and. "0 9 1 * 1" runs on the 1st of every month and also on every Monday. Restricting a job to days where both match cannot be expressed in a cron expression.

    What does a value like */10 mean?

    It is a step. Writing "*/10" in the minute field runs the job at minute 0, 10, 20 and so on. Combined with a range, "1-20/5" means every 5 minutes between minute 1 and 20, that is minutes 1, 6, 11 and 16.

    Are 0 and 7 both Sunday in the day of week field?

    Yes. Most cron implementations accept both 0 and 7 for Sunday. This tool treats 7 as the same value as 0 when it computes the next run times.

    Which time zone are the next run times shown in?

    They are computed in the time zone configured on your device. A cron job on a server runs in the server time zone, so the real execution time will differ if the two settings do not match.

    Is anything I type sent to a server?

    No. Building the expression and computing the next run times both happen entirely in your browser. Nothing you type is sent to or stored on a server.

    How to use

    1. Pick a preset — Choose something close to what you need, such as daily at 09:00 or weekdays only, and all five fields are filled in at once.
    2. Adjust the fields — Edit minute, hour, day of month, month and day of week directly. Besides numbers you can use * (all), 1-5 (range), 1,3,5 (list) and */10 (step).
    3. Read the description — Just under the expression, a plain-English sentence says what the expression means, so a mistake is visible before you deploy it.
    4. Check the next run times — Five upcoming run times are listed. Real dates make it easy to confirm that your day-of-week and step values behave as you expected.
    5. Copy it — Tick the checkbox and type a command if you want a full crontab line, then use the copy button and paste it into your crontab.