OpsPane

0 */12 * * * runs a cron job twice a day, at midnight and noon. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd, or pick other times.

crontab expression

0 */12 * * *

In plain English

At minute 0 past every 12 hours.

2 runs a day (counted over 2026, UTC)

*/12 in the hour field matches hours 0 and 12, so with minute 0 the job runs at 00:00 and 12:00 every day. It is the same schedule as 0 0,12 * * *; the list form makes it easy to move the two runs to other times.

Field by field

Minute01/60

:00

Hour*/122/24

Every 12 hours

Day of month*31/31

Every day of the month

Month*12/12

Every month

Day of week*7/7

Every day of the week

Day matchAND

Runs every day.

The same schedule on every platform

Each expression below is the same schedule written for that platform, checked run by run against the crontab version.

PlatformExpressionOpen in tool
crontab0 0,12 * * *Open in the crontab tool
Quartz0 0 0,12 * * ?Open in the Quartz tool
AWS EventBridgecron(0 0,12 * * ? *)Open in the AWS EventBridge tool
GitHub Actions0 0,12 * * *Open in the GitHub Actions tool
Kubernetes0 0,12 * * *Open in the Kubernetes tool
systemd*-*-* 00,12:00:00Open in the systemd tool

Variations

ExpressionRunsOpen in explainer
0 0,12 * * *At 00:00 and 12:00.Open 0 0,12 * * * in the explainer
0 6,18 * * *At 06:00 and 18:00.Open 0 6,18 * * * in the explainer
0 9,21 * * *At 09:00 and 21:00.Open 0 9,21 * * * in the explainer
30 */12 * * *At minute 30 past every 12 hours.Open 30 */12 * * * in the explainer
0 */6 * * *At minute 0 past every 6 hours.Open 0 */6 * * * in the explainer

Watch out for

Two fixed times read better as a list

*/12 can only give 00:00 and 12:00. For 06:00 and 18:00 write 0 6,18 * * *, or add a range to the step: 0 6-23/12 * * *.

Midnight can disappear on DST days

In zones that change clocks at midnight, such as America/Santiago, 00:00 does not exist on the spring-forward day and crontab skips that run. Pick 06:00 and 18:00, or run the scheduler in UTC.

Twice a day is not 12 hours after the last run

Cron runs at 00:00 and 12:00 whenever you deployed. For a run 12 hours after the previous one finished, use a systemd timer with OnUnitInactiveSec=12h.

FAQ

What is the cron expression for every 12 hours?

0 */12 * * *. It runs at 00:00 and 12:00 every day.

How do I run a cron job twice a day at 9 AM and 9 PM?

Use 0 9,21 * * *. The hour list picks the two times, and minute 0 runs once in each.

Is 0 */12 * * * the same as 0 0,12 * * *?

Yes. Both match hours 0 and 12 and produce the same runs.

What is every 12 hours in systemd OnCalendar?

*-*-* 00,12:00:00, which matches 00:00 and 12:00 every day.