⏰
Cron Expression Generator
Visual Cron expression generator, supports second, minute, hour, day, month, week, year configuration.
Cron Expression
*
*
*
*
*
?
Common Presets
Next 7 Run Times
What is a Cron Expression?
Cron expressions are strings used to define scheduled tasks, consisting of 6 or 7 fields for precise cycle control.
Core Value
- Extremely flexible
- Widely adopted
- Second-level precision
- Powerful scheduling
Field Meanings
- Sec (0-59)
- Min (0-59)
- Hour (0-23)
- Day (1-31)
- Month (1-12)
- Week (1-7)
- Year (Optional)
Scenarios
- Linux Crontab
- Java Quartz
- Spring Task
- CI/CD Triggers
Special Characters
- * Any
- ? Unspecified
- - Range
- / Step
- L Last
- W Workday
- # nth week
🚀 How to Use
- Config: Set rules for each field in the tabs above.
- Real-time: Expression and meaning are generated instantly.
- Copy: Click 'Copy' to use the result in your code.
- Note: Framework standards vary; switch modes in top-right.
💡 FAQ
0/5 vs */5?
Usually equivalent, meaning every 5 units starting from 0.
Day and Week together?
Usually not. One must be '?' to avoid conflicts.