Complex Cron Patterns - Advanced Scheduling
Combine multiple cron fields for precise scheduling. Master business hours, multi-schedule patterns, and advanced field combinations to build exactly the schedule you need.
Try Any Complex Pattern
Visual Cron Builder
Build cron expressions using an intuitive visual interface with dropdowns and checkboxes.
Timezone Converter
Convert cron schedules between different timezones to coordinate global deployments.
Text to Cron
Convert plain English phrases like "every day at 8pm" into valid cron expressions.
Expression Validator
Validate and debug cron expressions with detailed field-by-field syntax analysis.
Popular Complex Patterns
Standard 9-5 weekdays
0 9-17 * * 1-5Every hour during business hours (9 AM - 5 PM, Mon-Fri)
Common uses:
- Business monitoring
- Hourly reports
- Customer support checks
- Sales tracking
Every 15 min during business hours
*/15 9-17 * * 1-5Every 15 minutes during business hours
Common uses:
- Real-time dashboards
- Queue monitoring
- SLA tracking
- Active monitoring
Extended hours 8-20
0 8-20 * * 1-5Extended business hours (8 AM - 8 PM, weekdays)
Common uses:
- Extended support
- Global team coverage
- Long operations
Night shift
0 22-6 * * *Night shift hours (10 PM - 6 AM)
Common uses:
- Overnight processing
- Night maintenance
- Batch jobs
- Low-traffic operations
Twice daily
0 0,12 * * *Twice daily (midnight and noon)
Common uses:
- AM/PM reports
- Data sync
- Backup snapshots
- Status updates
Three times daily
0 8,13,18 * * *Three times daily (8 AM, 1 PM, 6 PM)
Common uses:
- Shift change reports
- Regular updates
- Data validation
- Status checks
First Monday
0 9 1-7 * 1First Monday of every month at 9 AM
Common uses:
- Monthly team meetings
- Sprint planning
- Monthly reviews
- Budget review
Weekend maintenance
0 2-6 * * 0,6Weekend maintenance window (2-6 AM, Sat/Sun)
Common uses:
- Infrastructure updates
- Database maintenance
- System upgrades
- Full backups
Peak hours only
*/10 10-14 * * 1-5Every 10 min during peak hours (10 AM - 2 PM)
Common uses:
- Peak traffic monitoring
- Load balancing
- Performance tracking
Business Hours Reference
0 9-17 * * 1-5*/15 9-17 * * 1-5*/30 9-17 * * 1-50 8-20 * * 1-50 22-6 * * *Multi-Schedule Reference
0 0,12 * * *0 8,13,18 * * *0 0,6,12,18 * * *0,30 * * * *0 9,11,13,15,17 * * 1-50 6,7,8 * * 1-50 2-6 * * 0,6Advanced Pattern Techniques
Combining Hour Ranges with Day-of-Week
Use ranges and lists across multiple fields to create precise schedules:
0 9-17 * * 1-5 - Hour range 9-17 restricts to 9 AM through 5 PM; day-of-week range 1-5 restricts to Monday through Friday*/15 8-18 * * 1-5 - Step value */15 in the minute field combined with hour range creates high-frequency business-hours monitoring0 8-18/2 * * 1-5 - Step value /2 within hour range 8-18 runs at 8, 10, 12, 14, 16, 18First/Last Day-of-Week in a Month
Standard cron has no built-in "first Monday" or "last Friday" syntax, but you can approximate it:
0 9 1-7 * 1 - First Monday: day-of-month 1-7 combined with day-of-week 1 (Monday) ensures it only runs on the Monday that falls in the first 7 days0 17 25-31 * 5 - Last Friday (approx): day-of-month 25-31 combined with day-of-week 5 (Friday) catches the last Friday in most monthsAvoiding Overlapping Executions
Complex patterns with high frequency can trigger overlapping runs. Protect against this:
- Use file-based locks (e.g.,
flock) to prevent concurrent execution of the same job - Check for a running PID before starting a new instance
- Set execution timeouts shorter than the interval between runs
- Log start/end times to detect jobs that routinely overlap with the next scheduled run
Industry-Specific Examples
SaaS & Web Apps
*/15 9-17 * * 1-5*/10 10-14 * * 1-50 0,8,16 * * *0 2-6 * * 0,6Healthcare
0 7,15,23 * * *0 8,13,18 * * *0 6,14,22 * * *0 9-17 * * 1-5Financial Services
*/5 9-16 * * 1-50 6,7,8,17,18 * * 1-50 0,8,16 * * 1-50 17 * * 1-5Education
0 8-15 * * 1-50 9 1-7 1,6,9 10 9 1 * *0 17 25-31 * 5Related Tools
Cron Tools
Visual Builder
Build cron expressions visually
Text to Cron
Convert natural language to cron
Expression Validator
Validate and test cron expressions
Timezone Converter
Convert cron times between timezones
Every X Minutes
Minute interval cron patterns
Every X Hours
Hourly cron scheduling patterns
Daily Schedules
Run jobs at specific times of day
Weekly Schedules
Weekday and day-of-week patterns
Monthly Schedules
Monthly, quarterly, and annual cron
Complex Patterns
Business hours and multi-schedule
Learning Resources
Guides, tutorials, and best practices
Preset Library
Browse 300+ cron expression presets