Liking cljdoc? Tell your friends :D

org.pilosus.kairos

Crontab format parsing

Format follows that of the Vixie cron: https://man7.org/linux/man-pages/man5/crontab.5.html

including support for the following Date-Time matching: (month AND hour AND minute AND (day-of-month OR day-of-week))

Short 3-letter names for months and week days are supported, e.g. Jan, Wed.

Sunday's day of week number can be either 0 or 7.

Date-Time entities use java.time.ZonedDateTime for UTC timezone.

Crontab format parsing

Format follows that of the Vixie cron:
https://man7.org/linux/man-pages/man5/crontab.5.html

including support for the following Date-Time matching:
(month AND hour AND minute AND (day-of-month OR day-of-week))

Short 3-letter names for months and week days are supported,
e.g. Jan, Wed.

Sunday's day of week number can be either 0 or 7.

Date-Time entities use java.time.ZonedDateTime for UTC timezone.
raw docstring

dt-future?clj

(dt-future? current-dt another-dt)

Return true if provided ZonedDateTime is in the future

Return true if provided ZonedDateTime is in the future
sourceraw docstring

dt-valid?clj

(dt-valid? dt days-of-month days-of-week)

Return true if a given ZonedDateTime satisfies day-of-month OR day-of-week constrains

Return true if a given ZonedDateTime satisfies day-of-month OR day-of-week constrains
sourceraw docstring

get-current-dtclj

(get-current-dt)

Get current date time

Get current date time
sourceraw docstring

get-dtclj

(get-dt year month day hour minute)

Return ZonedDateTime in UTC or nil for invalid Date-Time

Return ZonedDateTime in UTC or nil for invalid Date-Time
sourceraw docstring

get-dt-seqclj

(get-dt-seq s)
(get-dt-seq s year-from year-to)

Get a lazy sequence of future ZonedDateTime objects that satisfy crontab string.

When years range is ommited get a sequence for 1 year starting from the current one.

Get a lazy sequence of future ZonedDateTime objects that satisfy crontab string.

When years range is ommited get a sequence for 1 year starting from the current one.
sourceraw docstring

get-rangeclj

(get-range s range-type)

Parse a string into a sequence of numbers that represent a given Date-Time fragment's type, e.g. minutes, hours, days of month, etc.

Parse a string into a sequence of numbers that represent a given
Date-Time fragment's type, e.g. minutes, hours, days of month, etc.
sourceraw docstring

list-regexclj

source

parse-cronclj

(parse-cron s)

Parse crontab string into map of ranges

Parse crontab string into map of ranges
sourceraw docstring

parse-rangeclj

(parse-range s range-type)

Parse a string with the range of values with an optional step value

Parse a string with the range of values with an optional step value
sourceraw docstring

range-regexclj

source

range-valuesclj

source

seq-contains?clj

(seq-contains? coll e)

Return true if a sequence contains the element

Return true if a sequence contains the element
sourceraw docstring

skip-rangeclj

source

substitute-valuesclj

source

utc-tzclj

source

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

× close