Five-field cron expressions and their next run, in a given time zone.
Fields: minute hour day-of-month month day-of-week, each *, a number, a
range a-b, a step */n, a/n or a-b/n, or a comma list of those.
Months and weekdays also take names (JAN, MON). Day-of-week 0 and 7 are
Sunday. As in Vixie cron, when both day fields are restricted a day
matching either fires. @hourly, @daily, @weekly, @monthly and
@yearly are shorthands.
Times are wall-clock in the zone: each matching local time fires once. A local time skipped by a DST jump fires at the shifted instant; a local time that occurs twice fires on its first occurrence.
Five-field cron expressions and their next run, in a given time zone. Fields: minute hour day-of-month month day-of-week, each `*`, a number, a range `a-b`, a step `*/n`, `a/n` or `a-b/n`, or a comma list of those. Months and weekdays also take names (JAN, MON). Day-of-week 0 and 7 are Sunday. As in Vixie cron, when both day fields are restricted a day matching either fires. `@hourly`, `@daily`, `@weekly`, `@monthly` and `@yearly` are shorthands. Times are wall-clock in the zone: each matching local time fires once. A local time skipped by a DST jump fires at the shifted instant; a local time that occurs twice fires on its first occurrence.
(due-tick schedule zone last-tick now)What a ticker should enqueue now for a schedule last fired at last-tick:
{:tick instant :skipped? bool}, or nil when nothing is due. Ticks missed
while nothing ran collapse into the latest one; :skipped? says some did.
What a ticker should enqueue now for a schedule last fired at `last-tick`:
`{:tick instant :skipped? bool}`, or nil when nothing is due. Ticks missed
while nothing ran collapse into the latest one; `:skipped?` says some did.(latest-run schedule zone after upto)The last instant in (after, upto] that schedule fires in zone, or nil.
The last instant in (`after`, `upto`] that `schedule` fires in `zone`, or nil.
(next-run schedule zone after)The first instant strictly after after that schedule fires in zone, or
nil when it never fires (30 February).
The first instant strictly after `after` that `schedule` fires in `zone`, or nil when it never fires (30 February).
(parse expr)A schedule from cron expression expr, or {:error …}.
A schedule from cron expression `expr`, or `{:error …}`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |