Liking cljdoc? Tell your friends :D

java-time.adjuster


adjustclj

(adjust entity adjuster & args)

Adjusts the temporal entity using the provided adjuster with optional args.

The adjuster should either be a keyword which resolves to one of the predefined adjusters (see java-time.repl/show-adjusters) an instance of TemporalAdjuster or a function which returns another temporal entity when applied to the given one:

(adjust (local-date 2015 1 1) :next-working-day) => #<LocalDate 2015-1-2>

(adjust (local-date 2015 1 1) :first-in-month :monday) => #<LocalDate 2015-1-5>

(adjust (local-date 2015 1 1) plus (days 1)) => #<LocalDate 2015-1-2>

Adjusts the temporal `entity` using the provided `adjuster` with optional `args`.

The adjuster should either be a keyword which resolves to one of the
predefined adjusters (see `java-time.repl/show-adjusters`) an instance of
`TemporalAdjuster` or a function which returns another temporal entity when
applied to the given one:

  (adjust (local-date 2015 1 1) :next-working-day)
  => #<LocalDate 2015-1-2>

  (adjust (local-date 2015 1 1) :first-in-month :monday)
  => #<LocalDate 2015-1-5>

  (adjust (local-date 2015 1 1) plus (days 1))
  => #<LocalDate 2015-1-2>
sourceraw docstring

base-adjustersclj

source

extra-adjustersclj

source

predefined-adjustersclj

source

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

× close