robfig / cron

a cron library for go
MIT License
13.14k stars 1.63k forks source link

I cannot pass second as 6th param for cronjob #497

Closed iamatulsingh closed 1 year ago

iamatulsingh commented 1 year ago

For my purpose it's required to make cron exact with seconds paran in cron param ( ). I tried but it's throwing error that it require only 5 params. I saw the code a little and found seconds option is available. Is there any way to fix this? By the way I'm using v3.

baabeetaa commented 1 year ago

from doc:

// Seconds field, required
cron.New(cron.WithSeconds())
iamatulsingh commented 1 year ago

@baabeetaa Thanks for the help!