Cron expression explainer

See what a cron schedule means in plain English, and when it will run next.

Next runs (your time zone)

    Cron syntax

    A standard cron expression has five fields:

    FieldValues
    Minute0–59
    Hour0–23
    Day of month1–31
    Month1–12 or JAN–DEC
    Day of week0–6 or SUN–SAT (7 is also Sunday)

    * means every value, 1-5 a range, 1,15 a list, and */15 every 15th value.

    Examples

    • */5 * * * *: every 5 minutes
    • 0 9 * * 1-5: at 09:00 on weekdays
    • 30 2 1 * *: at 02:30 on the 1st of every month
    • 0 0 * * 0: at midnight every Sunday

    A cron gotcha

    When both day of month and day of week are restricted, classic cron runs the job when either matches. 0 0 13 * 5 runs on the 13th of every month and every Friday, not only on Friday the 13th.

    Questions

    What time zone does cron use?

    The server's local time zone, unless your scheduler lets you set one. The next run times here use your browser's time zone.

    Does it support seconds?

    This explainer uses the standard 5-field format. Some schedulers (like Quartz) add a seconds field at the start.

    Related tools