Cron expression for weekends at 9 AM

Runs the job at 9 AM on Saturday and Sunday, and never on a working day.

0 9 * * 0,6

Generator

At 09:00 AM, only on Sunday and Saturday

Field by field

  • Minute · 0–59 0 only at minute 0
  • Hour · 0–23 9 only at 09:00
  • Day of month · 1–31 * every day of the month
  • Month · 1–12 or JAN–DEC * every month
  • Day of week · 0–7 or SUN–SAT 0,6 only on Sunday and Saturday

Next runs in your local time

    Where this cron expression shows up

    • Maintenance windows at a company that works Monday to Friday
    • Digest emails that should land when the work queue is empty
    • Cleanup jobs that must not compete with weekday traffic

    Common variations

    • Weekends at noon instead

      0 12 * * 0,6 At 12:00 PM, only on Sunday and Saturday

    • Weekdays at 9 AM, the other half of the week

      0 9 * * 1-5 At 09:00 AM, Monday through Friday

    • Every day at 9 AM

      0 9 * * * At 09:00 AM

    Sunday answers to both 0 and 7 in the day-of-week field, so 0,6 and 7,6 name the same two days. Names travel better: SAT,SUN needs no memory of the numbering, and a crontab accepts them.

    Ranges, steps, and names are spelled out on the cheat sheet.