OpsPane

0 */6 * * * runs a cron job four times a day, at 00:00, 06:00, 12:00 and 18:00. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd.

crontab expression

0 */6 * * *

In plain English

At minute 0 past every 6 hours.

4 runs a day (counted over 2026, UTC)

*/6 in the hour field matches hours 0, 6, 12 and 18, and the 0 minute runs the job once at the start of each. The times follow the scheduler's clock, so check which time zone it uses before you rely on 06:00 being morning.

Field by field

Minute01/60

:00

Hour*/64/24

Every 6 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 */6 * * *Open in the crontab tool
Quartz0 0 0/6 * * ?Open in the Quartz tool
AWS EventBridgecron(0 0/6 * * ? *)Open in the AWS EventBridge tool
GitHub Actions0 */6 * * *Open in the GitHub Actions tool
Kubernetes0 */6 * * *Open in the Kubernetes tool
systemd*-*-* 00/6:00:00Open in the systemd tool

Variations

ExpressionRunsOpen in explainer
0 3-23/6 * * *At minute 0 past every 6 hours from 03:00 through 23:00.Open 0 3-23/6 * * * in the explainer
30 */6 * * *At minute 30 past every 6 hours.Open 30 */6 * * * in the explainer
0 0,6,12,18 * * *At 00:00, 06:00, 12:00 and 18:00.Open 0 0,6,12,18 * * * in the explainer
0 */4 * * *At minute 0 past every 4 hours.Open 0 */4 * * * in the explainer
0 */8 * * *At minute 0 past every 8 hours.Open 0 */8 * * * in the explainer

Watch out for

06:00 in UTC is not 06:00 for you

GitHub Actions and AWS EventBridge cron run in UTC, and Kubernetes uses the controller's zone unless spec.timeZone is set. Use the explainer's time zone picker to see the runs in your own zone.

Every 6 hours from now is something else

Cron counts from midnight, not from when you deploy. For runs exactly 6 hours apart from a start time, use AWS rate(6 hours) or a systemd timer with OnUnitActiveSec=6h.

Midnight runs collide with daily jobs

The 00:00 run lands on the same minute as every 0 0 * * * job. 0 3-23/6 * * * (03:00, 09:00, 15:00, 21:00) keeps the 6-hour gap away from midnight.

FAQ

What is the cron expression for every 6 hours?

0 */6 * * *. It runs at 00:00, 06:00, 12:00 and 18:00.

How do I run every 6 hours at different times?

Change the start of the hour range: 0 3-23/6 * * * runs at 03:00, 09:00, 15:00 and 21:00.

What is every 6 hours in AWS EventBridge?

cron(0 0/6 * * ? *) runs at 00:00, 06:00, 12:00 and 18:00 UTC. rate(6 hours) also runs every 6 hours, but counted from when the rule was created.

Does 0 */6 * * * always run four times a day?

Yes, because 6 divides 24 evenly. A step that does not divide 24, such as */5, leaves a shorter gap before midnight.