Cron every 12 hours
The cron expression for every 12 hours is:
0 */12 * * *Runs twice a day, at midnight and at noon.
Next 10 runs
For 0 */12 * * *, 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, 00:00 | Friday |
| 2 | Oct 30, 2026, 12:00 | Friday |
| 3 | Oct 31, 2026, 00:00 | Saturday |
| 4 | Oct 31, 2026, 12:00 | Saturday |
| 5 | Nov 1, 2026, 00:00 | Sunday |
| 6 | Nov 1, 2026, 12:00 | Sunday |
| 7 | Nov 2, 2026, 00:00 | Monday |
| 8 | Nov 2, 2026, 12:00 | Monday |
| 9 | Nov 3, 2026, 00:00 | Tuesday |
| 10 | Nov 3, 2026, 12:00 | Tuesday |
How to read 0 */12 * * *
0 in the minute field pins the job to minute 0. */12 in the hour field takes every twelfth hour: 0 and 12. It is the same as 0 0,12 * * *.
| Field | Value | Meaning | Allowed |
|---|---|---|---|
| Minute | 0 | At the top of the hour | 0-59 |
| Hour | */12 | At hours 0 and 12 | 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
- Leaving the minute as
*(* */12 * * *) runs the job every minute from 00:00 to 00:59 and from 12:00 to 12:59. - For other times of day, list the hours:
0 9,21 * * *runs at 09:00 and 21:00.
Often used for: Twice-daily backups, reports and syncs.
Use it in
crontab
0 */12 * * * /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 */12 * * *"
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 */12 * * *'
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