Cron every Friday at 18:00: the expression, explained, in Python
The cron expression for “every Friday at 18:00” is 0 18 * * 5. This page shows what each field does, the next five times it will fire, the mistake most people make with it, and a working Python example you can paste.
The expression
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | exactly 0 |
| hour | 18 | exactly 18 |
| day of month | * | every day of month |
| month | * | every month |
| day of week | 5 | Friday only |
Next five runs (UTC, from now)
- 2026-09-18 18:00 UTC
- 2026-09-25 18:00 UTC
- 2026-10-02 18:00 UTC
- 2026-10-09 18:00 UTC
- 2026-10-16 18:00 UTC
Mistakes people make with this schedule
- Filling both day-of-month and day-of-week. In classic cron they combine with OR, so "0 18 1 * 5" runs on the 1st and on every Friday.
- Assuming the server clock is your clock. Cron runs in the machine’s timezone unless the runtime says otherwise; the examples here are UTC.
- No lock around a job that might overlap itself, and no alert when it silently stops. That second one is what Supercrontab is for.
Run it in your stack
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.triggers.cron import CronTrigger
sched = BlockingScheduler(timezone="UTC")
sched.add_job(run_report, CronTrigger.from_crontab("0 18 * * 5"))
sched.start()APScheduler accepts the crontab string directly. Celery beat needs the crontab() helper instead.
Questions
Does 0 18 * * 5 run in my local time?
Only if the scheduler is configured for it. crontab uses the system timezone; Vercel and GitHub Actions always use UTC; Laravel and node-cron take a timezone option. In Supercrontab the timezone is a field on the job.
What if the previous run is still going?
Classic cron starts the next run anyway. Add a lock (flock on Linux, withoutOverlapping() in Laravel) or let Supercrontab skip the tick while the previous request is open.
Is there a shorter way to write this?
No. The five-field form is the shortest portable version.