Skip to content
toolbox
All tools

Cron expression explainer

What a cron (or systemd) schedule means, when it runs next, and the same schedule in the other format.

Runs

—

minute hour day-of-month month day-of-week, e.g. 0 9 * * 1-5, or @daily
Field by field
0–59
0–23
1–31
1–12, JAN–DEC
0–7, SUN–SAT

Next runs

    Same schedule in other formats

    cron

    For crontab -e, and also the schedule of a Kubernetes CronJob (the time zone goes in spec.timeZone). Cron uses the server's time zone; some versions accept CRON_TZ=.

    systemd

    How it's read
    • Five fields: minute, hour, day of the month, month, day of the week (0 and 7 are Sunday). Each takes *, a number, lists (1,15), ranges (1-5), steps (*/15, 10-30/5) and names (JAN, MON).
    • If both the day of the month and the weekday are set, cron runs when either matches (0 0 13 * 5 = every Friday and every 13th). systemd requires both (Fri *-*-13 = only Friday the 13th).
    • Shortcuts: @yearly, @monthly, @weekly, @daily, @hourly. @reboot has no time, so there are no next runs.
    • Daylight saving: a time that doesn't exist that day is skipped; a time that happens twice runs once.
    • systemd: seconds other than 0, specific years and the ~ (last days of the month) don't fit in cron and aren't supported here.
    Esc