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
raw 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
raw docstring

get-current-dtclj

(get-current-dt)

Get current date time

Get current date time
raw 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
raw 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.
raw 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.
raw docstring

list-regexclj


parse-cronclj

(parse-cron s)

Parse crontab string into map of ranges

Parse crontab string into map of ranges
raw 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
raw docstring

range-regexclj


range-valuesclj


seq-contains?clj

(seq-contains? coll e)

Return true if a sequence contains the element

Return true if a sequence contains the element
raw docstring

skip-rangeclj


substitute-valuesclj


utc-tzclj

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

× close