Cron · Hours

Cron Expression for Every 3 Hours

0 */3 * * * Runs at 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00 and 21:00 — eight times a day.

Unix cron · UTC
“At minute 0 past every 3rd hour”
Presets
Direction
Clock

Every 3 Hours: Unix / Linux cron expression

0 */3 * * *

“At minute 0 past every 3rd hour.”

What each field means
FieldValueMeaning
Minute0:00
Hour*/3every 3 hours
Day of month*every day
Month*every month
Day of week*every day

Every 3 Hours in every cron format

SchedulerExpression
Unix / Linux cron
crontab, cronie, Vixie cron, Kubernetes CronJob, GitHub Actions
0 */3 * * *
Quartz
Quartz Scheduler (Java)
0 0 */3 * * ?
Spring @Scheduled
Spring Framework CronExpression and @Scheduled
0 0 */3 * * *
AWS EventBridge
EventBridge rules and Scheduler cron()
cron(0 0/3 * * ? *)

Next run times (UTC)

  1. Fri, Dec 4, 2026 09:00
  2. Fri, Dec 4, 2026 12:00
  3. Fri, Dec 4, 2026 15:00
  4. Fri, Dec 4, 2026 18:00
  5. Fri, Dec 4, 2026 21:00

Calculated when this page was generated. Use the tester above for live times in your own time zone.

Tip

To start at 01:00 instead, use 0 1-23/3 * * *.

Copy-ready examples

# At minute 0 past every 3rd hour
0 */3 * * *  /path/to/command >> /var/log/my-job.log 2>&1
crontab (Linux)
apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  # At minute 0 past every 3rd hour
  schedule: "0 */3 * * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: my-job
              image: busybox:1.36
              command: ["sh", "-c", "date; echo Hello"]
Kubernetes CronJob
# At minute 0 past every 3rd hour (UTC)
# GitHub Actions schedules always run in UTC and may start a few minutes late.
on:
  schedule:
    - cron: "0 */3 * * *"
GitHub Actions (UTC)
// At minute 0 past every 3rd hour
@Scheduled(cron = "0 0 */3 * * *", zone = "UTC")
public void runJob() {
    // ...
}

// Or externalise it in application.yml:
// app.jobs.my-job.cron: "0 0 */3 * * *"
// @Scheduled(cron = "${app.jobs.my-job.cron}", zone = "UTC")
Spring Boot

Common questions

What is the cron expression for every 3 hours?

In standard Unix cron (crontab, Kubernetes, GitHub Actions) use 0 */3 * * *. It means: At minute 0 past every 3rd hour.

How do I run a Spring @Scheduled job every 3 hours?

Use @Scheduled(cron = "0 0 */3 * * *"). Spring cron has six fields, starting with seconds. Add zone = "Europe/London" (or any IANA zone) to run it in a specific time zone instead of the server's.

What is the Quartz cron expression for every 3 hours?

0 0 */3 * * ?. Quartz adds a seconds field at the start and requires ? in either the day-of-month or day-of-week field.

How do I write every 3 hours for AWS EventBridge?

Use cron(0 0/3 * * ? *). EventBridge cron has six fields including a year, and one of the two day fields must be ?. Classic EventBridge rules run in UTC; EventBridge Scheduler accepts a time zone.

Which time zone does this cron schedule use?

Cron runs in the time zone of the scheduler: the server's local zone for crontab, UTC for GitHub Actions and EventBridge rules, or the zone you set with CRON_TZ, Kubernetes timeZone, Spring zone or Quartz inTimeZone. Choose a zone in the tester above to see local run times.

More cron schedules

Similar: Every 2 Hours (0 */2 * * *) · Every 4 Hours (0 */4 * * *) · Every 6 Hours (0 */6 * * *)