Every 2 Hours Cron Expression — 0 */2 * * *
Cron Expression
0 */2 * * *What it means
Runs every 2 hours at :00
Good for moderately frequent tasks like incremental data exports, sitemap regeneration, or refreshing CDN cache rules without excessive compute cost.
Next 8 Scheduled Runs (UTC)
- 1.Wed, 24 Jun 2026 20:00:00 GMT
- 2.Wed, 24 Jun 2026 22:00:00 GMT
- 3.Thu, 25 Jun 2026 00:00:00 GMT
- 4.Thu, 25 Jun 2026 02:00:00 GMT
- 5.Thu, 25 Jun 2026 04:00:00 GMT
- 6.Thu, 25 Jun 2026 06:00:00 GMT
- 7.Thu, 25 Jun 2026 08:00:00 GMT
- 8.Thu, 25 Jun 2026 10:00:00 GMT
Platform Snippets
GitHub Actions
- cron: '0 */2 * * *'
Kubernetes CronJob
schedule: "0 */2 * * *"
AWS EventBridge
cron(0 */2 * * ? *)
AWS uses a 6-field format with year and requires either DOM or DOW to be ?.
systemd Timer
[Timer] OnCalendar=*-*-* */2:00:00 Persistent=true
Want to decode a different expression or test your own?
Test this expression interactively →FAQ
What does the cron expression 0 */2 * * * mean?
Runs every 2 hours at :00. Good for moderately frequent tasks like incremental data exports, sitemap regeneration, or refreshing CDN cache rules without excessive compute cost.
How do I use 0 */2 * * * in GitHub Actions?
Add a schedule trigger under the "on" key in your workflow YAML: on: schedule: - cron: '0 */2 * * *'. This will run your workflow runs every 2 hours at :00. Note that GitHub Actions uses UTC time.
Is the cron expression 0 */2 * * * valid for Kubernetes CronJobs?
Yes. Set the schedule field in your CronJob spec to "0 */2 * * *". Kubernetes CronJobs use standard 5-field cron syntax and run in UTC by default unless you configure a timeZone field.
