robfig/cron

I cannot pass second as 6th param for cronjob

iamatulsingh opened this issue · 2 comments

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.

from doc:

// Seconds field, required
cron.New(cron.WithSeconds())

@baabeetaa Thanks for the help!