prettycron icon indicating copy to clipboard operation
prettycron copied to clipboard

Wrong description for expression with increments

Open khaledh opened this issue 8 years ago • 2 comments

Calling toString() against this expression 0 0/15 * * * ? results in 00:00 and 15:00 every day, while the correct description should be something like: every 15 minutes.

Check here for comparison of the output of another similar (.NET) library.

khaledh avatar Oct 05 '15 19:10 khaledh

When you have six fields, it's hard to distinguish between minute-hour-date-month-weekday-year and second-minute-hour-date-month-weekday.

Personally, I can't imagine wanting to use cron for something where seconds matter, or which run so infrequently that the year matters. I think just focussing on the common minute-hour-date-month-weekday is good enough.

pekeler avatar Oct 07 '15 06:10 pekeler

Fair enough. Thanks.

khaledh avatar Oct 10 '15 01:10 khaledh