Five-field cron expressions and their fire times in one time zone.
A spec matches minute, hour, day of month, month and day of week. Day 0 and day 7 are Sunday. When both day fields are restricted, a day matches either field, as in Vixie cron. A local time in a daylight-saving gap fires at the end of the gap. A local time that occurs twice fires only at the first one.
Five-field cron expressions and their fire times in one time zone. A spec matches minute, hour, day of month, month and day of week. Day 0 and day 7 are Sunday. When both day fields are restricted, a day matches either field, as in Vixie cron. A local time in a daylight-saving gap fires at the end of the gap. A local time that occurs twice fires only at the first one.
(next-fire spec zone-id from-ms)The first fire time strictly after from-ms in zone-id, in Unix
milliseconds, or nil when none occurs in the next five years. The first day starts
at the local time of from-ms, because an earlier local time never resolves to a
later instant.
The first fire time strictly after `from-ms` in `zone-id`, in Unix milliseconds, or nil when none occurs in the next five years. The first day starts at the local time of `from-ms`, because an earlier local time never resolves to a later instant.
(parse expression)Parse a five-field expression or a macro such as @daily. Throws ex-info
with :type :invalid-cron and a readable message.
Parse a five-field expression or a macro such as `@daily`. Throws ex-info with `:type :invalid-cron` and a readable message.
(zone timezone)The ZoneId for timezone, or the system zone when it is blank. Throws ex-info
with :type :invalid-timezone when the name is not known.
The ZoneId for `timezone`, or the system zone when it is blank. Throws ex-info with `:type :invalid-timezone` when the name is not known.
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 |