Back to examples
Hours
Easy
Unix / Linux

Cron expression for every 20 hours

Run a scheduled job every 20 hours with Unix cron, AWS EventBridge, Quartz, and Kubernetes CronJobs.

Cron expression0 */20 * * *
Runs every 20 hours at minute 0.

Primary dialect: Unix / Linux


Next run examples

Static preview generated for the primary dialect. AWS examples use UTC; other examples use Europe/Berlin for display.

Jun 9, 2026, 8:00 PM

Jun 10, 2026, 12:00 AM

Jun 10, 2026, 8:00 PM

Jun 11, 2026, 12:00 AM

Jun 11, 2026, 8:00 PM


Dialect versions

Unix / Linux
0 */20 * * *

Standard Unix/Linux cron expression when this schedule is expressible with five fields.

AWS EventBridge
rate(20 hours)

AWS EventBridge cron schedules are evaluated in UTC. Use rate(...) for simple fixed intervals when possible.

Quartz
0 0 */20 * * ?

Quartz includes a leading seconds field and supports additional day operators.

Kubernetes
0 */20 * * *

Kubernetes CronJobs use standard five-field cron syntax. Non-standard operators require job-level logic.


Variants

Weekday version
0 9 * * 1-5

Runs at 09:00 Monday through Friday.

Daily version
0 0 * * *

Runs every day at midnight.

Hourly version
0 * * * *

Runs once per hour.


Kubernetes notes

  • Kubernetes CronJobs can use this schedule directly.
  • "If the job may run longer than the interval
  • use concurrencyPolicy: Forbid or make the job idempotent."

Common mistakes

  • "Writing \"*/20 * * * *\" changes the minute field and means every 20 minutes
  • not every 20 hours."
  • Assuming rate-based AWS schedules align to the same wall-clock hours as cron.

FAQ

What is the cron expression for every 20 hours?

Use `0 */20 * * *` for standard cron when the scheduler supports this syntax.

Can I use this expression in Kubernetes?

Yes, if it is standard five-field cron. AWS and Quartz-only operators need a Kubernetes-safe alternative or application-level date logic.

Related cron resources