Salamek / cron-descriptor

A Python library that converts cron expressions into human readable strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schedule "*/10 */1 * * *" translated the same as schedule "*/10 * * * *"

wickmaster opened this issue · comments

Using version 1.2.24 (latest) with Python 3.9.5, I see the following:

>>> import cron_descriptor as cd
>>> cd.get_description("*/10 * * * *")
'Every 10 minutes'
>>> cd.get_description("*/10 */1 * * *")
'Every 10 minutes'

Crontab guru shows the following translations:
*/10 * * * * - "At every 10th minute."
*/10 */1 * * * - "At every 10th minute past every hour."

Isn't that a same thing?
"At every 10th minute." == "At every 10th minute past every hour."

Huh, well, I didn't think they were the same. The plain-English translations certainly seem to differ:

  • "At every 10th minute." sounds to me like 12:00, 12:10, 12:20, 12:30, ...
  • "At every 10th minute past every hour." sounds to me like 12:10, 13:10, 14:10, 15:10, ...
    This is what I expected to see.

Checking the examples on 2 different web utilities (Crontab guru, Cron Helper), though, both cases give matching results.

Apologies for the noise.