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.

Definitions:

field - time and date fragments of the cron entry.

values - each field contains allowed values in the form of single number or a name, their ranges, ranges with step values, lists, or an asterisk.

named value - a 3-letter name for a month or a day of week.

range - two numbers or named values separated by a hyphen.

step value - range of values with a given step.

list of values - values separated by comma.

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.


Definitions:

field - time and date fragments of the cron entry.

values - each field contains allowed values in the form of single
number or a name, their ranges, ranges with step values, lists, or
an asterisk.

named value - a 3-letter name for a month or a day of week.

range - two numbers or named values separated by a hyphen.

step value - range of values with a given step.

list of values - values separated by comma.
raw docstring

cron->dtclj

(cron->dt s)

Parse crontab string into a lazy seq of ZonedDateTime objects

Parse crontab string into a lazy seq of ZonedDateTime objects
sourceraw docstring

cron->mapclj

(cron->map s)

Parse a crontab string into a map of ranges

Parse a crontab string into a map of ranges
sourceraw docstring

cron->textclj

(cron->text s)

Parse crontab string into a human-readable text

Parse crontab string into a human-readable text
sourceraw docstring

cron-valid?clj

(cron-valid? s)

Return true if a crontab entry is valid

Return true if a crontab entry is valid
sourceraw docstring

cron-validateclj

(cron-validate s)

Return validation status and error message for a given crontab entry

Return validation status and error message for a given crontab entry
sourceraw docstring

day-number->nameclj

source

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

field->nameclj

source

field->rangeclj

source

field->textclj

(field->text s field)

Parse field values into a human readable text

Parse field values into a human readable text
sourceraw docstring

field->valuesclj

(field->values s field)

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

Parse a string into a sequence of numbers that represent a given
Date-Time field's type, e.g. minutes, hours, days of month, etc.
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

list-regexclj

source

month-number->nameclj

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-fieldclj

source

substitute-valuesclj

source

utc-tzclj

source

validate-valueclj

(validate-value start end field)

Return true if value for the given field is valid, throw an exception otherwise

Return true if value for the given field is valid, throw an exception
otherwise
sourceraw docstring

value->intcljmultimethod

Parse a string with the values into a range of integers

Parse a string with the values into a range of integers
sourceraw docstring

value->ordinalclj

(value->ordinal s)

Return an ordinal integer number with the proper suffix in English, e.g. 1 -> 1st, 2 -> 2nd, 3 -> 3rd, 15 -> 15th, etc.

Return an ordinal integer number with the proper suffix in English,
e.g. 1 -> 1st, 2 -> 2nd, 3 -> 3rd, 15 -> 15th, etc.
sourceraw docstring

value->textcljmultimethod

Parse a string with the values into a human-readable text

Parse a string with the values into a human-readable text
sourceraw docstring

value-fragment->textcljmultimethod

Parse a frament of the value into a human readable text

Parse a frament of the value into a human readable text
sourceraw docstring

value-regexclj

source

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

× close