Liking cljdoc? Tell your friends :D

chime.times


*clock*clj

The clock used to determine 'now' (defaults to Clock/systemUTC). See with-clock for re-binding it.

The clock used to determine 'now' (defaults to `Clock/systemUTC`). 
See `with-clock` for re-binding it.
sourceraw docstring

->Instantcljprotocol

->instantclj

(->instant obj)

Convert obj to an Instant instance.

Convert `obj` to an Instant instance.
source

every-day-atclj

(every-day-at)
(every-day-at lt)
source

every-days-of-month-atclj

(every-days-of-month-at days lt)
source

every-first-day-of-month-atclj

(every-first-day-of-month-at day)
(every-first-day-of-month-at day lt)

Returns an infinite sequence of first <day> (e.g. Monday) in every month (ZonedDateTime instances at time <lt>).

Returns an infinite sequence of first <day> (e.g. Monday) in
every month (ZonedDateTime instances at time <lt>).
sourceraw docstring

every-first-working-day-of-month-atclj

(every-first-working-day-of-month-at)
(every-first-working-day-of-month-at lt)

Returns an infinite sequence of first working-day in every month (ZonedDateTime instances at time <lt>).

Returns an infinite sequence of first working-day in
every month (ZonedDateTime instances at time <lt>).
sourceraw docstring

every-last-day-of-month-atclj

(every-last-day-of-month-at day)
(every-last-day-of-month-at day lt)

Returns an infinite sequence of last <day> (e.g. Monday) in every month (ZonedDateTime instances at time <lt>).

Returns an infinite sequence of last <day> (e.g. Monday) in
every month (ZonedDateTime instances at time <lt>).
sourceraw docstring

every-last-working-day-of-month-atclj

(every-last-working-day-of-month-at)
(every-last-working-day-of-month-at lt)

Returns an infinite sequence of last working-day in every month (ZonedDateTime instances at time <lt>).

Returns an infinite sequence of last working-day in
every month (ZonedDateTime instances at time <lt>).
sourceraw docstring

every-month-atclj

(every-month-at)
(every-month-at month-day)
(every-month-at month-day lt)

Returns an infinite sequence of ZonedDateTime objects one month apart, starting with the next day-of-month & time specified. If the <month-day> provided is greater than 28 or 30, will adjust the months that don't have such indices per (min month-day length-of-month).

Returns an infinite sequence of ZonedDateTime objects one month apart,
starting with the next day-of-month & time specified. If the <month-day>
provided is greater than 28 or 30, will adjust the months that don't have
such indices per `(min month-day length-of-month)`.
sourceraw docstring

every-month-end-atclj

(every-month-end-at)
(every-month-end-at lt)
source

every-n-daysclj

(every-n-days)
(every-n-days n)
(every-n-days from n)

Returns an infinite sequence of successive Instant objects <n> days apart (defaults to 1), starting at <from> (defaults to Instant/now).

Returns an infinite sequence of successive `Instant` objects <n> days apart
(defaults to 1), starting at <from> (defaults to `Instant/now`).
sourceraw docstring

every-n-hoursclj

(every-n-hours)
(every-n-hours n)
(every-n-hours from n)

Returns an infinite sequence of successive Instant objects <n> hour(s) apart (defaults to 1), starting at <from> (defaults to Instant/now).

Returns an infinite sequence of successive `Instant` objects <n> hour(s) apart
(defaults to 1), starting at <from> (defaults to `Instant/now`).
sourceraw docstring

every-n-millisclj

(every-n-millis)
(every-n-millis n)
(every-n-millis from n)

Returns an infinite sequence of successive Instant objects <n> second(s) apart (defaults to 1), starting at <from> (defaults to Instant/now).

Returns an infinite sequence of successive `Instant` objects <n> second(s) apart
(defaults to 1), starting at <from> (defaults to `Instant/now`).
sourceraw docstring

every-n-minutesclj

(every-n-minutes)
(every-n-minutes n)
(every-n-minutes from n)

Returns an infinite sequence of successive Instant objects <n> minute(s) apart (defaults to 1), starting at <from> (defaults to Instant/now).

Returns an infinite sequence of successive `Instant` objects <n> minute(s) apart
(defaults to 1), starting at <from> (defaults to `Instant/now`).
sourceraw docstring

every-n-secondsclj

(every-n-seconds)
(every-n-seconds n)
(every-n-seconds from n)

Returns an infinite sequence of successive Instant objects <n> second(s) apart (defaults to 1), starting at <from> (defaults to Instant/now).

Returns an infinite sequence of successive `Instant` objects <n> second(s) apart
(defaults to 1), starting at <from> (defaults to `Instant/now`).
sourceraw docstring

every-weekend-atclj

(every-weekend-at)
(every-weekend-at lt)

Returns an infinite sequence of week-ends (Sat/Sun) (ZonedDateTime instances at time <lt>).

Returns an infinite sequence of week-ends (Sat/Sun)
(ZonedDateTime instances at time <lt>).
sourceraw docstring

every-workday-atclj

(every-workday-at)
(every-workday-at lt)

Returns an infinite sequence of week-days (Mon-Fri) (ZonedDateTime instances at time <lt>).

Returns an infinite sequence of week-days (Mon-Fri)
(ZonedDateTime instances at time <lt>).
sourceraw docstring

merge-schedulesclj

(merge-schedules left right)
source

MONTHSclj

source

months*clj

(months* & months)

Returns a set of Month objects, as specified by <months>. These can be either month-indices (1-12), or month-names (e.g. 'January', 'February' etc). Keywords are also supported.

Returns a set of Month objects, as specified by <months>.
These can be either month-indices (1-12), or month-names
(e.g. 'January', 'February' etc). Keywords are also supported.
sourceraw docstring

nowclj

(now)
(now clock)

Wrapper around Instant/now. No-arg arity uses clock.

Wrapper around `Instant/now`. No-arg arity uses *clock*.
sourceraw docstring

periodic-seqclj

(periodic-seq start duration-or-period)

Returns an infinite sequence of successive Temporal objects (concrete type per <start>), <duration-or-period> apart.

Returns an infinite sequence of successive `Temporal` objects (concrete type per <start>),
<duration-or-period> apart.
sourceraw docstring

some-days-atclj

(some-days-at days-set)
(some-days-at days-set lt)
source

some-months-atclj

(some-months-at months-set)
(some-months-at months-set month-day)
(some-months-at months-set month-day lt)

Similar to chime.times/every-month-at, but only for the months provided.

Similar to `chime.times/every-month-at`, but only for the months provided.
sourceraw docstring

to-instantclj

(to-instant obj)
source

utc-clockclj

source

WEEKENDclj

source

with-clockcljmacro

(with-clock clock & body)
source

with-multiple-timesclj

(with-multiple-times f at-times)

Utility for wrapping an existing generator with multiple 'at' times.

Utility for wrapping an existing generator with multiple 'at' times.
sourceraw docstring

without-past-timesclj

(without-past-times times)
(without-past-times times now)

Given a (potentially infinite) list of successive <times>, drops the ones that are in the past (via drop-while).

Given a (potentially infinite) list of successive <times>,
drops the ones that are in the past (via `drop-while`).
sourceraw docstring

WORKDAYSclj

source

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

× close