bradymholt / cron-expression-descriptor

A .NET library that converts cron expressions into human readable descriptions.
https://bradymholt.github.io/cron-expression-descriptor/
MIT License
1.01k stars 188 forks source link

Unable to provide description for 0 0 7/0 21 4/4,5 ? #152

Closed kaushiknitt closed 2 years ago

kaushiknitt commented 2 years ago

Unable to provide description for "0 0 7/0 21 4/4,5 ?". Should convert it to something like "At second :00, at minute :00, every 0 hours starting at 07am, on the 21st day, in May, and every 4 months starting in April"

bradymholt commented 2 years ago

I don't think 7/0 is a valid step value. You're expecting "every 0 hours starting at 07am" but according to cron manual:

Step values can be used in conjunction with ranges.  Following a
range with "/<number>" specifies skips of the number's value
through the range.  For example, "0-23/2" can be used in the
'hours' field to specify command execution for every other hour
(the alternative in the V7 standard is "0,2,4,6,8,10,12,14,16,18,
20,22").  Step values are also permitted after an asterisk, so if
specifying a job to be run every two hours, you can use "*/2".