Cron Every Tuesday
Run a cron job every Tuesday at midnight using 0 0 * * 2. Detailed field explanation, weekly scheduling guidance, and practical use case examples.
Cron Expression
0 0 * * 2
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 0 | At 0 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | 2 | At Tuesday |
Detailed Explanation
The cron expression 0 0 * * 2 schedules a task to run once per week, every Tuesday at midnight.
Field-by-field breakdown:
0(Minute): At minute 0. The task fires at the start of the hour.0(Hour): At hour 0 (midnight). The task runs at the beginning of Tuesday.*(Day of Month): Every day from 1 through 31. No restriction on the day of the month.*(Month): Every month from January through December. No restriction on the month.2(Day of Week): Tuesday only. In standard cron, 2 represents Tuesday.
This means your task will execute once per week at the very start of Tuesday. Tuesday is often chosen for weekly jobs because it avoids Monday's typical rush of beginning-of-week processes and provides a full business day of data from Monday to process. This timing is popular for mid-early-week maintenance windows and automated software update checks. Consider adjusting the hour if midnight does not suit your needs. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.
Use Case
Commonly used for running weekly dependency update checks and creating automated pull requests for outdated packages every Tuesday.
Try It — Interactive Builder
Every Tuesday at 12:00 AM
Next 10 Executions
Ctrl+Shift+C to copy expression