Cron Expression: Every 2 hours at the top of the hour
Cron Expression
0 */2 * * *Every 2 hours at the top of the hour
Click the expression to select it, then copy.
Quick Answer
The cron expression for "every 2 hours at the top of the hour" is `0 */2 * * *`. Copy and paste this into your crontab, Vercel cron config, GitHub Actions workflow, or any standard cron-compatible scheduler.
Field-by-Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | */2 | Every 2 hour |
| Day of Month | * | Every day of month |
| Month | * | Every month |
| Day of Week | * | Every day of week |
Common Use Cases
- →Database maintenance
- →Bi-hourly reports
- →Cleanup tasks
How to Use This Expression
Vercel Cron Jobs
// vercel.json
{
"crons": [{
"path": "/api/your-endpoint",
"schedule": "0 */2 * * *"
}]
}GitHub Actions
# .github/workflows/scheduled.yml
on:
schedule:
- cron: '0 */2 * * *'Linux crontab
0 */2 * * * /path/to/your-command.sh