0 0 * * 0
Cron reads this as: at 00:00, on day-of-week Sunday.
Next 5 runs
These times are in your browser's local time zone. Cron itself uses the server's zone, which on most cloud hosts is UTC. If the difference matters here, see time zones & DST.
- Calculating…
When to use this schedule
This is the conventional weekly slot and the expression behind the @weekly shorthand. Common uses are weekly full backups, log archival and rolling up a completed week's data.
What to watch out for
Standard cron accepts Sunday as 0 or 7, but other schedulers number the days differently. Quartz, for instance, numbers Sunday as 1 and reads 7 as Saturday. Use SUN if the expression might be used in another scheduler. Midnight on Sunday is the start of Sunday, so if your reporting week runs Monday to Sunday, a weekly job here sees Monday through Saturday and none of Sunday.
The crontab line
0 0 * * 0 /usr/local/bin/your-job.sh >> /var/log/your-job.log 2>&1
Send the output to a log you will read. By default cron mails it, and on a host with no mail transport that mail is silently dropped. See the crontab guide for the surrounding syntax.
Related schedules
| Expression | Schedule |
|---|---|
@weekly | Shorthand for the same schedule |
0 0 * * SUN | Same schedule, using names |
0 4 * * 0 | Sunday at 04:00 |
Build your own
If this page doesn't cover the schedule you need, compose it field by field in the visual builder, or paste an expression you already have into the explainer for a per-field breakdown. The examples library has sixty schedules in one place, and the guides cover crontab syntax, time zones, troubleshooting and production practices.