Cron / twice a day, at 9am and 9pm
Cron twice a day, at 9am and 9pm: 0 9,21 * * *
List two hours in the hour field. 0 9,21 * * * runs at 09:00 and 21:00; 0 */12 * * * would pick midnight and noon.
The expression
0 9,21 * * *
In words: At minute 0 past hour 9 and 21.
Field by field
| Field | Value | Means |
|---|---|---|
| Minute (0–59) | 0 | minute 0 |
| Hour (0–23) | 9,21 | hour 9 and 21 |
| Day of month (1–31) | * | every day |
| Month (1–12) | * | every month |
| Day of week (0–6, Sunday = 0) | * | every day of the week |
Next runs
Starting from 2026-11-27 00:00 UTC:
- Fri, Nov 27, 2026, 09:00 UTC
- Fri, Nov 27, 2026, 21:00 UTC
- Sat, Nov 28, 2026, 09:00 UTC
- Sat, Nov 28, 2026, 21:00 UTC
- Sun, Nov 29, 2026, 09:00 UTC
Try other expressions and timezones in the cron expression tool.
The same schedule on other platforms
Linux crontab. Edit with crontab -e. Runs in the server’s timezone unless you set CRON_TZ (cronie) or TZ.
0 9,21 * * * /path/to/job.sh >> /var/log/job.log 2>&1
GitHub Actions. Schedules run in UTC on the default branch, and runs can start late when GitHub is busy.
on:
schedule:
- cron: '0 9,21 * * *'
Kubernetes CronJob. Set timeZone (Kubernetes 1.27+) or the schedule follows the controller’s timezone, usually UTC. concurrencyPolicy: Forbid stops runs from overlapping.
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "0 9,21 * * *"
timeZone: "Etc/UTC"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: job
image: busybox
command: ["sh", "-c", "echo running"]
AWS EventBridge Scheduler. Six fields (the last is the year); one of day-of-month or day-of-week must be ?. Pick the timezone on the schedule.
cron(0 9,21 * * ? *)
Wisp. Describe the job and say how often in plain words — Wisp writes the function, turns the schedule into this cron expression in your timezone, and runs it with logs and error alerts.
"Twice a day, at 9am and 9pm, fetch new orders from Shopify and post a summary to Slack."
Questions
Can the two runs be at different minutes? Not in one line — the minute applies to both hours. Use two lines, e.g. 30 8 * * * and 0 17 * * *.
Try any expression in the cron tool · Run it on a schedule with Wisp