bradymholt / cRonstrue

JavaScript library that translates Cron expressions into human readable descriptions
http://bradymholt.github.io/cRonstrue/
MIT License
1.28k stars 168 forks source link

Few valid cron expression can not convert to human format #302

Closed carlosnunesjr closed 10 months ago

carlosnunesjr commented 10 months ago

Cron Expression (cron to use bimontly) 0 14 16 25 /2 ?

Cron Expression (cron to use quarterly) 0 14 16 25 /3 ?

Cron Expression (cron to use semianual) 0 14 16 25 /6 ?

Expected Output At 12:23 PM, every two months - (cron to use bimontly) At 12:23 PM, every three months - (cron to use quarterly) At 12:23 PM, every three months - (cron to use semianual)

Actual Output Unknown Error: Error: month part must be >= 1 and <= 12

Prerequisites

bradymholt commented 10 months ago

I don't think those expressions are valid, at least with most cron implementations. The interval needs to be proceeded by * like 0 14 16 25 */2 ?.