Cron Expression: Six times a day every 4 hours starting at midnight
Cron Expression
0 0,4,8,12,16,20 * * *Six times a day every 4 hours starting at midnight
Click the expression to select it, then copy.
Quick Answer
The cron expression for "six times a day every 4 hours starting at midnight" is `0 0,4,8,12,16,20 * * *`. 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 | 0,4,8,12,16,20 | At hour values: 0,4,8,12,16,20 |
| Day of Month | * | Every day of month |
| Month | * | Every month |
| Day of Week | * | Every day of week |
Common Use Cases
- →Four-hourly reports
- →Six-point daily sync
- →Regular interval batch jobs
How to Use This Expression
Vercel Cron Jobs
// vercel.json
{
"crons": [{
"path": "/api/your-endpoint",
"schedule": "0 0,4,8,12,16,20 * * *"
}]
}GitHub Actions
# .github/workflows/scheduled.yml
on:
schedule:
- cron: '0 0,4,8,12,16,20 * * *'Linux crontab
0 0,4,8,12,16,20 * * * /path/to/your-command.sh