Skip to content

Cron Every Friday at 09:00: 0 9 * * 5 Explained

0 9 * * 5 Every Friday at 09:00 weekly

The cron expression 0 9 * * 5 runs a job once per week, every Friday at 09:00. The last field is day-of-week, where standard crontab numbers Sunday as 0 (and also accepts 7 for Sunday), Monday as 1, through Saturday as 6. Pinning minute and hour to fixed values while leaving day-of-month and month as wildcards produces a weekly rhythm: Friday morning runs suit weekly digests, sprint reports and Monday kickoff automation. Weekly schedules are common for newsletter batches, dependency-update pull requests, storage audits and stale-data purges. The most important subtlety is the interaction between the two day fields: in standard cron, when both day-of-month and day-of-week are restricted, the job runs when either matches (OR semantics), not both — here day-of-month is a wildcard so the behavior is unambiguous. Also verify your platform's numbering: Quartz counts Sunday as 1, which is why the conversion table below uses day names instead of numbers. You will also find the next five computed run times and the exact Kubernetes, Spring and EventBridge equivalents.

Advertisement
Ad slot · ref-top

Field-by-field breakdown

FieldValueMeaning
minute0only at minute 0
hour9only at hour 9
day-of-month*every day-of-month (wildcard, no restriction)
month*every month (wildcard, no restriction)
day-of-week5only at day-of-week 5

Next 5 run times (UTC)

Computed at build time; cross-check against your server's time zone before deploying.

  • 2026-12-11 09:00 UTC
  • 2026-12-18 09:00 UTC
  • 2026-12-25 09:00 UTC
  • 2027-01-01 09:00 UTC
  • 2027-01-08 09:00 UTC

When to use this schedule

  • Weekly newsletter and digest batches compiled from the past seven days of activity.
  • Dependency-update pull requests and security audit summaries delivered at the start of the work week.
  • Storage and cost audits that compare week-over-week trends rather than daily noise.
  • Purging stale records (old notifications, soft-deleted rows) on a predictable weekly maintenance slot.

Equivalent syntax

The same schedule expressed for popular schedulers and platforms:

Crontab (5-field)
0 9 * * 5 /usr/local/bin/job.sh   # Every Friday at 09:00
Quartz (6/7-field)
0 0 9 ? * FRI   # Quartz (Java): 6-7 fields, leading seconds, '?' when day-of-week is set
Spring @Scheduled
0 0 9 * * FRI   # Spring @Scheduled: 6 fields, leading seconds, day names accepted
Kubernetes CronJob
0 9 * * 5   # Kubernetes CronJob schedule field: standard 5-field syntax
AWS EventBridge
cron(0 9 ? * FRI *)   # AWS EventBridge: 6 fields incl. year, '?' required in one day field

Caveats & gotchas

  • Cron evaluates schedules in the server's local time zone; set CRON_TZ (cronie) or TZ (containers) explicitly on shared or distributed infrastructure.
  • Daylight saving transitions can shift, duplicate or skip wall-clock slots in local-time zones; scheduling in UTC removes the ambiguity.
  • Day-of-week numbering is platform-specific: crontab uses 0-7 (0 and 7 are Sunday) while Quartz uses 1-7 (1 is Sunday) — prefer day names in cross-platform configs.
  • When both day-of-month and day-of-week are restricted, standard cron ORs them; keep one of the two as '*' unless you want that behavior.

Verify your schedule

After installing the schedule, verify it end to end instead of trusting the crontab line. Run 'crontab -l' to confirm the entry survived editing, then execute the command manually with the same user and environment to catch PATH and permission problems — cron runs with a minimal environment, so absolute paths and explicit SHELL/PATH declarations prevent the classic 'works in my terminal, fails in cron' bug. Watch the daemon log ('grep CRON /var/log/syslog' on Debian/Ubuntu, 'journalctl -u cron' or '-u crond' on systemd hosts) to confirm the trigger fires at the expected times, and redirect the job's own output to a log file with 2>&1 so failures are not swallowed by mail. Finally, cross-check the next run times listed on this page against your server's time zone before declaring the schedule correct.

Frequently asked questions

How do I schedule a cron job every Friday?

Set the day-of-week field to 5 (crontab numbering: Sunday=0 through Saturday=6), e.g. 0 9 * * 5. Keep day-of-month as '*' so the two day fields don't trigger OR semantics.

Is Sunday 0 or 7 in crontab?

Both are accepted by standard cron and mean Sunday. Quartz differs: it numbers Sunday as 1. Using names (SUN, MON) in Quartz/Spring/EventBridge avoids the whole class of bugs.

Can I run every weekday instead of one specific day?

Yes — use a range: '0 9 * * 1-5' runs Monday through Friday. Lists like '1,3,5' pick individual days.

Advertisement
Ad slot · ref-in-article

Try the Cron Parser

Decode cron schedules and preview the next run times.

Open tool →