/cronexp

Primary LanguageGoMIT LicenseMIT

GoDoc

cronexp

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 and ParseWithLocation exported methods

See godoc for more details on usage.

Cron spec format

There are two cron spec formats in common usage:

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.