Cannot specify ranges with stepping that wrap around starting value
onlime opened this issue · comments
A pattern like * 17-2/3 * * *
or 58-2/2 * * * *
that has a range with stepping and the range wraps around the starting value (e.g. 0 minute, 0 hour, Sunday) is not validated and Croner throws the following exception:
CronPattern: From value is larger than to value: '17-2/3'
On UNIX/Linux systems, those patterns are perfectly valid and working. man 5 crontab
doesn't say anything about this, but it has been proven to be working and must be specified somewhere (please point me to the right specs, if you know). Other libraries like poliander/cron (PHP) also consider those patterns as valid crontab expressions.
Can we start allowing such patterns?
Sorry about my confusion. The mentioned patterns with wrapping ranges are validated by Linux crontab
command, but are not actually working (tested on Debian Bullseye). Still couldn't find any specification for this, but I guess that's not supported on purpose.
So I will file a PR or bug report for poliander/cron (PHP) instead.