nbari / cron-parser

cron parser
https://docs.rs/cron-parser/latest/cron_parser/
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

Doesn't support slash times with initial values #3

Open palfrey opened 2 years ago

palfrey commented 2 years ago

e.g. 0 1/6 * * * for "every 6h starting from 01:00" doesn't work, because this parser supports */<num> but not <num>/<num>. This is supported by Kubernetes cronjobs at least, via the Go cron format (see https://pkg.go.dev/github.com/robfig/cron/v3#hdr-Special_Characters)

Thanks for all the other work here!

nbari commented 9 months ago

Hi @palfrey , 0 1,7,13,19 * * * Could cover that case (every 6 hours starting at 1), I think it is easier/clearer (less prone to error) any thoughts, use case?