Cron every day at 2 AM
The cron expression for every day at 2 AM is:
0 2 * * *Runs once a day at 02:00.
Next 10 runs
For 0 2 * * *, in the timezone you pick. Cron uses the server's timezone.
Times in UTC as of the last site update. They refresh when the page loads in a browser.
| # | Date and time | When |
|---|---|---|
| 1 | Oct 30, 2026, 02:00 | Friday |
| 2 | Oct 31, 2026, 02:00 | Saturday |
| 3 | Nov 1, 2026, 02:00 | Sunday |
| 4 | Nov 2, 2026, 02:00 | Monday |
| 5 | Nov 3, 2026, 02:00 | Tuesday |
| 6 | Nov 4, 2026, 02:00 | Wednesday |
| 7 | Nov 5, 2026, 02:00 | Thursday |
| 8 | Nov 6, 2026, 02:00 | Friday |
| 9 | Nov 7, 2026, 02:00 | Saturday |
| 10 | Nov 8, 2026, 02:00 | Sunday |
How to read 0 2 * * *
0 2 sets minute 0 of hour 2. The last three * fields mean every day.
| Field | Value | Meaning | Allowed |
|---|---|---|---|
| Minute | 0 | At the top of the hour | 0-59 |
| Hour | 2 | At 2:00 AM | 0-23 |
| Day of month | * | Every day of the month | 1-31 |
| Month | * | Every month | 1-12 or jan-dec |
| Weekday | * | Every day of week | 0-7 or sun-sat |
Watch out for
- In US time zones and Central European Time, the hour from 2 AM is skipped once a year when clocks spring forward, and in Central European Time it repeats in the autumn. The cron on Debian and Ubuntu runs a job from a skipped hour soon after the change and does not run it twice in a repeated hour. Other schedulers differ, so check yours, or run the server on UTC.
- Hours run from 0 to 23.
2is 2 AM; 2 PM is14.
Often used for: Nightly backups, database maintenance and other jobs that need low traffic.
Use it in
crontab
0 2 * * * /path/to/your-script.shEdit with crontab -e. Runs in the server's timezone.
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "0 2 * * *"
timeZone: "Etc/UTC"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: my-job
image: busybox:1.36
command: ["sh", "-c", "date"]Without timeZone, the schedule follows the timezone of the kube-controller-manager.
GitHub Actions
on:
schedule:
- cron: '0 2 * * *'
timezone: "Etc/UTC"
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./your-script.shWithout timezone, GitHub runs schedules in UTC. It runs them at most every 5 minutes, and a run can start late when GitHub is busy.
Related schedules
Cron does not tell you when a job stops
Know when a job on this schedule does not run.
Your job pings Drumbeats when it finishes. If a ping does not arrive on schedule, you get an alert. No SDK, free for up to 50 monitors.
Free for up to 50 monitors · Setup in 60 seconds · No credit card required