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.
(->instant obj)
Convert obj
to an Instant instance.
Convert `obj` to an Instant instance.
(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>).
(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>).
(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>).
(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>).
(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`).
(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`).
(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`).
(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`).
(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`).
(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>).
(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>).
(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.
(now)
(now clock)
Wrapper around Instant/now
. No-arg arity uses clock.
Wrapper around `Instant/now`. No-arg arity uses *clock*.
(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.
(some-months-at months-set)
(some-months-at months-set month-day)
(some-months-at months-set month-day lt)
(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`).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close