jmrozanec / cron-utils

Cron utils for parsing, validations and human readable descriptions as well as date/time interoperability.
http://cron-utils.com
Apache License 2.0
1.15k stars 262 forks source link

Cron Field endRange may not be correct #602

Closed renliangyu857 closed 1 year ago

renliangyu857 commented 1 year ago

企业微信截图_16850064062768 the second/minute endRange maybe 60 the hour endRange maybe 24 the week endRange maybe 7 ?

jmrozanec commented 1 year ago

@renliangyu857 depends on the Cron definition. E.g., crontab accepts a range of 0-7, but with 0=7, which makes an effective cron range of 0-6 with mapping 7->0. If you find a case where the cron does not behave as expected, we will be grateful for a PR with the test case. Meanwhile, we close this issue.