Liking cljdoc? Tell your friends :D

sbocq.cronit


->-Stateclj

(->-State locale c-expr board satisfies-mask? iterators)

Positional factory function for class sbocq.cronit.-State.

Positional factory function for class sbocq.cronit.-State.
raw docstring

board-fieldsclj

The supported fields

The supported fields
raw docstring

board-forclj

(board-for c-expr)

Return the simplest :board that contains most fields in a c-expr. Return remaining fields that do not fit on a board as :mask

Return the simplest `:board` that contains most fields in a `c-expr`. Return remaining
fields that do not fit on a board as `:mask`
raw docstring

boardsclj

List of all the valid cronit boards, from least to most complicated

List of all the valid cronit boards, from least to most complicated
raw docstring

c-expr-optsclj


Cronitclj


day-of-weekclj


EnumFieldIteratorclj


initclj

(init c-expr time-point)

Return a cron iterator (cronit) for a cronit expression and initialized at a given point in time (ZonedDateTime). The iterator is a hashmap with internal :state and the :current time point. In addition, it is tagged with {:unaligned? true, :unaligned-cause :init} when the initial time point is not aligned with the specification given by the cronit expression.

Return a cron iterator (cronit) for a cronit expression and initialized at a given point
in time (`ZonedDateTime`). The iterator is a hashmap with internal `:state` and the
`:current` time point. In addition, it is tagged with `{:unaligned?
true, :unaligned-cause :init}` when the initial time point is not aligned with the
specification given by the cronit expression.
raw docstring

localeclj

(locale cronit)

Return the Locale used by an iterator

Return the `Locale` used by an iterator
raw docstring

month-of-yearclj


nextclj

(next cronit)

Return an iterator to the next time point. The iterator is tagged with with {:unaligned? true, :unaligned-cause :gap} if its :current time point is not aligned with its specification because the next value felt within a gap when DST starts its current point was corrected to the end of the gap.

Return an iterator to the next time point. The iterator is
tagged with with `{:unaligned?  true, :unaligned-cause :gap}` if its `:current`
time point is not aligned with its specification because the next value felt
within a gap when DST starts its current point was corrected to the end of the
gap.
raw docstring

PFieldIteratorcljprotocol

iterator-aligned?clj

(iterator-aligned? _)

True if the current iterator value is aligned (may only be false after a reset)

True if the current iterator value is aligned (may only be false after a reset)

iterator-firstclj

(iterator-first _ t)

Return the first iterator with the temporal having its field adjusted accordingly

Return the first iterator with the temporal having its field adjusted accordingly

iterator-lastclj

(iterator-last _ t)

Return the last iterator with the temporal having its field adjusted accordingly

Return the last iterator with the temporal having its field adjusted accordingly

iterator-nextclj

(iterator-next _ t)

Return the next iterator with the temporal having its field adjusted accordingly

Return the next iterator with the temporal having its field adjusted accordingly

iterator-prevclj

(iterator-prev _ t)

Return the prev iterator with the temporal having its field adjusted accordingly

Return the prev iterator with the temporal having its field adjusted accordingly

iterator-resetclj

(iterator-reset _ t)

Reset this iterator on the corresponding time field of a temporal

Reset this iterator on the corresponding time field of a temporal

prevclj

(prev cronit)

Return an iterator to the previous time point. The iterator is tagged with {:unaligned? true, :unaligned-cause :gap} if its :current time point is not aligned with its specification because the previous value felt within a gap when DST starts, it was not pointing to the gap alreay, and its current point was corrected to the end of the gap.

Return an iterator to the previous time point. The iterator is
tagged with `{:unaligned? true, :unaligned-cause :gap}` if its `:current` time
point is not aligned with its specification because the previous value felt
within a gap when DST starts, it was not pointing to the gap alreay, and its
current point was corrected to the end of the gap.
raw docstring

RangeFieldIteratorclj


showclj

(show c-expr & [{:keys [:date :context :format :zone-id] :or {context 12}}])

Print generated time points for an expression around the current time. Options are :context to change the number of time points, :format to change the date format of the generated output (can be either a string, a DateTimeFormatter or :iso), :date to use a different reference date time (e.g. local "2021-01-01T00:00" or zoned), and :zone-id to override the system time zone with a different one (e.g. "Europe/Brussels") unless a zoned date has been provided.

Print generated time points for an expression around the current time. Options are
`:context` to change the number of time points, `:format` to change the date format of
the generated output (can be either a string, a `DateTimeFormatter` or `:iso`), `:date`
to use a different reference date time (e.g. local "2021-01-01T00:00" or zoned), and
`:zone-id` to override the system time zone with a different
one (e.g. "Europe/Brussels") unless a zoned date has been provided.
raw docstring

tempo-getclj

(tempo-get week-fields week-field-key field-key)

Mapping from field keys to objects and values frequently used by this library.

Mapping from field keys to objects and values frequently used by this library.
raw docstring

valid?clj

(valid? cronit)

Return true when an iterator is either aligned with its specification or is not aligned because of a DST gap condition. The :current position of an iterator can only be invalid once after a call to init because the initial time point is neither aligned nor meeting a gap condition already.

Return `true` when an iterator is either aligned with its
specification or is not aligned because of a DST gap condition. The `:current`
position of an iterator can only be invalid once after a call to `init` because
the initial time point is neither aligned nor meeting a gap condition already.
raw docstring

week-fields-forcljmultimethod

Return an instance of a java.time.temporal.WeekFields from its argument.

Return an instance of a `java.time.temporal.WeekFields` from its argument.
raw docstring

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

× close