The cron expression to run a job every Sunday at midnight is 0 0 * * 0. See the next executions and copy it for crontab, Kubernetes, or GitHub Actions.
Paste an expression or choose a starting schedule below.
Select a field to edit it.
Schedule summary
Build a schedule
Run time in UTC. Change the timezone in Upcoming runs.
Valid changes update the expression above immediately.
Upcoming runs
The next 50 runs, shown in the schedule timezone and your local time.
About 0 0 * * 0
0 0 * * 0 runs weekly at midnight on Sunday. The last field is the day of week, where 0 is Sunday and 6 is Saturday — Sunday is 0.
Cron reads the five fields as minute hour day month weekday. For this schedule that breaks down as:
| Field | Position | Matches |
|---|---|---|
0 | minute | 0 |
0 | hour | 0 |
* | day of month | every day |
* | month | every month |
0 | day of week | Sunday |
New to cron? Read the syntax reference or the FAQ.
Use it in crontab or GitHub Actions
The snippets below use UTC. The crontab timezone setting requires a compatible daemon such as Cronie. GitHub Actions defaults to UTC and accepts a timezone on each schedule. For other timezones, Kubernetes, EventBridge Scheduler, or Vercel, use the export menu in the calculator above.
crontab
# At 12:00 AM, only on Sunday # CRON_TZ requires a cron implementation that supports it, such as Cronie. CRON_TZ=UTC 0 0 * * 0 /path/to/command
GitHub Actions workflow
# At 12:00 AM, only on Sunday
on:
schedule:
- cron: '0 0 * * 0'
timezone: "UTC"