Cron example · Weekly

Every weekday at 9 AM in cron

Runs at 09:00 Monday to Friday.

0 9 * * 1-5 Open in the generator

The day-of-week field uses 0–6 with Sunday as 0 (most implementations also accept 7 for Sunday). 1-5 is Monday to Friday; most crons also accept the names MON-FRI.

Cron has no notion of public holidays. If the job must not run on holidays, let it run and have the script check a calendar file first, or trigger it from a scheduler that supports holiday calendars.

Field by field

ValueFieldMeaning
0Minute
0–59
at minute 0
9Hour
0–23
at 09:00
*Day of month
1–31
every day of the month
*Month
1–12 or JAN–DEC
every month
1-5Day of week
0–7 or SUN–SAT (0 and 7 are Sunday)
Monday to Friday

Next run times

Computed in your browser from the current time, so you can check the schedule against a clock you trust.

Your timezone (local)

  1. Needs JavaScript.

UTC (GitHub Actions, Kubernetes default)

    Variations

    • 0 9 * * MON-FRIthe same schedule using names · try it
    • 0 9-17 * * 1-5every hour during business hours · see page
    • 0 17 * * 5Friday at 17:00 · see page

    Where this expression works

    • Linux and macOS crontab: as written; times follow the system timezone.
    • Kubernetes CronJob: the same five fields; UTC unless spec.timeZone is set.
    • GitHub Actions: the same syntax in UTC, minimum interval five minutes, no @ shortcuts.
    • AWS EventBridge: a different six-field syntax; do not paste this expression unchanged.

    Full platform comparison · Cron tutorial

    FAQ

    Is Monday 0 or 1 in cron?

    Monday is 1. Sunday is 0 (and usually also 7). Saturday is 6.