cron icon indicating copy to clipboard operation
cron copied to clipboard

cron Why not support seconds

Open pylist opened this issue 3 years ago • 3 comments

expected exactly 5 fields, found 6: [1 2 * * * *]

pylist avatar Dec 04 '21 04:12 pylist

cron.New(cron.WithSeconds())

zhb127 avatar Dec 30 '21 07:12 zhb127

The project readme already explains why seconds support are not enabled by default, and shows how to enable them.

madpipeline avatar Jan 23 '22 22:01 madpipeline

~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

Enrico204 avatar Aug 09 '22 21:08 Enrico204