Cron Job During Off-Peak Hours – Expression & Examples
Using hour ranges 0-6 and 22-23 targets nighttime hours. Ideal for heavy tasks that shouldn't impact daytime performance.
How It Works
Using hour ranges 0-6 and 22-23 targets nighttime hours. Ideal for heavy tasks that shouldn't impact daytime performance.
Common Use Cases
- Database maintenance
- Heavy ETL jobs
- Full backup operations
- Index rebuilding
Schedule This Cron Job Now
Create a free CronJobPro account and use 0 0-6,22-23 * * * to schedule HTTP requests automatically — with monitoring, retries, and notifications built in.
Frequently Asked Questions
What does 0 0-6,22-23 * * * mean in cron?
Using hour ranges 0-6 and 22-23 targets nighttime hours. Ideal for heavy tasks that shouldn't impact daytime performance.
How do I use this cron expression?
On Linux/macOS, edit your crontab with crontab -e and add:0 0-6,22-23 * * * /path/to/your/script.sh
Or use CronJobPro to schedule HTTP requests with this expression — no server required.
What timezone does cron use?
By default, cron uses the system timezone. CronJobPro lets you set a specific timezone per job, so your schedules are predictable regardless of server location.