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.
(dt-future? current-dt another-dt)
Return true if provided ZonedDateTime is in the future
Return true if provided ZonedDateTime is in the future
(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
(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
(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.
(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.
(parse-cron s)
Parse crontab string into map of ranges
Parse crontab string into map of ranges
(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
(seq-contains? coll e)
Return true if a sequence contains the element
Return true if a sequence contains the element
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close