(->-State locale c-expr board satisfies-mask? iterators)
Positional factory function for class sbocq.cronit.-State.
Positional factory function for class sbocq.cronit.-State.
(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`
List of all the valid cronit boards, from least to most complicated
List of all the valid cronit boards, from least to most complicated
(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.
(locale cronit)
Return the Locale
used by an iterator
Return the `Locale` used by an iterator
(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.
(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-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-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-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-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-reset _ t)
Reset this iterator on the corresponding time field of a temporal
Reset this iterator on the corresponding time field of a temporal
(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.
(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.
(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.
(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.
Return an instance of a java.time.temporal.WeekFields
from its argument.
Return an instance of a `java.time.temporal.WeekFields` from its argument.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close