Parse 5-field and 6-field Unix cron schedule expressions into human-readable timetables and execution lists.
A Cron Expression is a string string representing a schedule timetable used in Unix-like operating systems and cloud job schedulers (AWS EventBridge, Kubernetes CronJobs, GitHub Actions) to run tasks periodically.
Standard Unix cron expressions consist of 5 fields separated by spaces: Minute (0-59), Hour (0-23), Day of Month (1-31), Month (1-12), and Day of Week (0-6). A 6-field variant includes Seconds at the beginning. Because complex cron syntax like `*/15 8-18 * * 1-5` can be challenging to interpret, parsing cron expressions into human language and upcoming execution dates prevents scheduled job failures.
Cron syntax supports special operators: wildcard (`*`) matching all values, comma (`,`) separating lists, hyphen (`-`) specifying ranges, and slash (`/`) defining step intervals (e.g., `*/10` for every 10 minutes).
Expression: */15 9-17 * * 1-5 Human Translation: "Every 15 minutes, between 09:00 AM and 05:59 PM, Monday through Friday"
Standard Unix cron uses 5 fields (Minute, Hour, Day of Month, Month, Day of Week). 6-field cron (used by Spring Boot and Quartz) adds a Seconds field at the front.
A slash followed by a number (e.g., `*/5` in the minute field) means 'every 5 minutes'.