(parse cron-expr)
(parse ks cron-expr)
Returns a schedule map for a cron-expr
whose parts correspond to <ks>.
Each part is a comma-separated list of ranges or single numbers.
Each range can be specified either as '*' (all), or as '<lower>-<upper>'
and may be followed by a '/<step>' expression.
Supported field-keys with lower/upper bounds and defaults are as follows:
Example: '0,30 8-18/2 * * 1-5' results in schedule {:minute [{:from 0, :to 0, :step 1} {:from 30, :to 30, :step 1}], :hour [{:from 8, :to 18, :step 2}], :day [{:from 1, :to 31, :step 1}], :month [{:from 1, :to 12, :step 1}], :day-of-week [{:from 1, :to 5, :step 1}]}
Returns a schedule map for a `cron-expr` whose parts correspond to <ks>. Each part is a comma-separated list of ranges or single numbers. Each range can be specified either as '*' (all), or as '<lower>-<upper>' and may be followed by a '/<step>' expression. Supported field-keys with lower/upper bounds and defaults are as follows: - second => 0..59 - 0 - minute => 0..59 - 0 - hour => 0..23 - 0 - day => 1..31 - 1 - month => 1..12 - 1 - day-of-week => 1..7 - * - year => 1970..9999 - * Example: '0,30 8-18/2 * * 1-5' results in schedule {:minute [{:from 0, :to 0, :step 1} {:from 30, :to 30, :step 1}], :hour [{:from 8, :to 18, :step 2}], :day [{:from 1, :to 31, :step 1}], :month [{:from 1, :to 12, :step 1}], :day-of-week [{:from 1, :to 5, :step 1}]}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close