0 12 * * 1-5 — what this cron expression means
The cron expression 0 12 * * 1-5 runs at noon (12:00) on weekdays (Monday to Friday). Here is the field-by-field breakdown and what it means in plain English.
What 0 12 * * 1-5 means
It runs at noon (12:00) on weekdays (Monday to Friday).
Field by field
minute=0, hour=12, day-of-month=*, month=*, day-of-week=1-5.
The range 1-5 covers Monday through Friday, so it fires at 12:00 on weekdays only, skipping weekends.
When it runs next
The next run is the next time the clock matches: at noon (12:00) on weekdays (Monday to Friday).
FAQ
What does 0 12 * * 1-5 mean?
It runs at noon, Monday through Friday — not on Saturday or Sunday.
How do I include Saturday?
Use 1-6 for Monday-Saturday, or 1-5,6 which is the same thing.