Cron Expression: Every 30 minutes during nighttime (10 PM to 6 AM)
Cron Expression
*/30 22-23,0-6 * * *Every 30 minutes during nighttime (10 PM to 6 AM)
Click the expression to select it, then copy.
Quick Answer
The cron expression for "every 30 minutes during nighttime (10 pm to 6 am)" is `*/30 22-23,0-6 * * *`. 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 | */30 | Every 30 minute |
| Hour | 22-23,0-6 | At hour values: 22-23,0-6 |
| Day of Month | * | Every day of month |
| Month | * | Every month |
| Day of Week | * | Every day of week |
Common Use Cases
- →Overnight periodic checks
- →Night shift processing
How to Use This Expression
Vercel Cron Jobs
// vercel.json
{
"crons": [{
"path": "/api/your-endpoint",
"schedule": "*/30 22-23,0-6 * * *"
}]
}GitHub Actions
# .github/workflows/scheduled.yml
on:
schedule:
- cron: '*/30 22-23,0-6 * * *'Linux crontab
*/30 22-23,0-6 * * * /path/to/your-command.sh