cronexp
is a modified version of original cron library from commit
bc59245. See LICENSES for
the original license notice.
The original code has been modified with following:
- No job scheduling - this is a parser only with ability to get next execution time
- Seconds and DOW are mandatory fields - thus expanding scheduling granularity to second by default
- No separate parser type - it is replaced by
Parse
andParseWithLocation
exported methods
See godoc
for more details on usage.
There are two cron spec formats in common usage:
-
The "standard" cron format, described on the Cron wikipedia page and used by the cron Linux system utility.
-
The cron format used by the Quartz Scheduler, commonly used for scheduled jobs in Java software
The original library provides seconds and day-of-week as optional fields. This implementation is intended to be strict, by making seconds and day-of-week required.