Salamek / cron-descriptor

A Python library that converts cron expressions into human readable strings.
MIT License
155 stars 38 forks source link

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

Closed wickmaster closed 2 years ago

wickmaster commented 2 years ago

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."

Salamek commented 2 years ago

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

wickmaster commented 2 years ago

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

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

Apologies for the noise.