Cron Reference
Every 2 Hours
Runs at midnight, 2 AM, 4 AM … 10 PM — 12 times per day.
Expression Breakdown
| Minute | Hour | Day | Month | Weekday |
|---|---|---|---|---|
| 0 | */2 | * | * | * |
| 0 | every 2 | any | any | any |
Next 5 Scheduled Runs
- Saturday, June 13 2026 at 10:00 PM
- Sunday, June 14 2026 at 12:00 AM
- Sunday, June 14 2026 at 2:00 AM
- Sunday, June 14 2026 at 4:00 AM
- Sunday, June 14 2026 at 6:00 AM
Times are relative to the server's local clock at page load.
Common Use Cases
- Feed and RSS fetchers
- Aggregation and rollup jobs
- Rate-limited third-party API calls
How to Install
Linux / macOS (crontab)
Run crontab -e and add this line:
0 */2 * * * /path/to/your/script.sh
Python (APScheduler / cron-style)
scheduler.add_job(my_func, 'cron',
minute='0',
hour='*/2',
day='*',
month='*',
day_of_week='*')
GitHub Actions (schedule)
on:
schedule:
- cron: '0 */2 * * *'
Frequently Asked Questions
What does 0 */2 * * * mean?
At minute 0 of every second hour: 00:00, 02:00, 04:00, 06:00, 08:00, 10:00, 12:00, 14:00, 16:00, 18:00, 20:00, 22:00.
How do I run a job every 2 hours starting at 1 AM?
Use
0 1/2 * * * — it starts at 01:00 and runs at 01:00, 03:00, 05:00 … 23:00.