cron
cron copied to clipboard
cron Why not support seconds
expected exactly 5 fields, found 6: [1 2 * * * *]
cron.New(cron.WithSeconds())
The project readme already explains why seconds support are not enabled by default, and shows how to enable them.
~Actually there is a mismatch between defaults used in the last tagged repo (3.0.1) and the current master
status. In particular, README.md in master
indicates that the version with seconds is accepted by default, however this is not true for 3.0.1.~
I found the problem mentioned in another issue (#432 ), the correct link for documentation is https://pkg.go.dev/github.com/robfig/cron/v3