Liking cljdoc? Tell your friends :D

chime.cron


all-digits?clj

(all-digits? s)
source

at*clj

(at* x)
source

boundsclj

source

day*clj

(day* pred)
source

default-cron-ksclj

source

dow-indexclj

source

item-patternclj

source

last-dom?clj

(last-dom? d)
source

last-dow-in-month?clj

(last-dow-in-month? dow d)
source

month-indexclj

source

parseclj

(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:

  • 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}]}

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}]}
sourceraw docstring

parse-singleclj

(parse-single s)
source

timesclj

(times parsed)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close