Liking cljdoc? Tell your friends :D

java-time.format


formatclj

(format o)
(format fmt o)

Formats the given time entity as a string.

Accepts something that can be converted to a DateTimeFormatter as a first argument. Given one argument uses the default format.

Formats the given time entity as a string.

Accepts something that can be converted to a `DateTimeFormatter` as a first
argument. Given one argument uses the default format.
sourceraw docstring

formatterclj

(formatter fmt)
(formatter fmt {:keys [resolver-style]})

Constructs a DateTimeFormatter out of a

  • format string - "YYYY/mm/DD", "YYY HH:MM", etc.
  • formatter name - :date, :time-no-millis, etc.

Accepts a map of options as an optional second argument:

  • resolver-style - either :strict, :smartor :lenient
Constructs a DateTimeFormatter out of a

* format string - "YYYY/mm/DD", "YYY HH:MM", etc.
* formatter name - :date, :time-no-millis, etc.

Accepts a map of options as an optional second argument:

* `resolver-style` - either `:strict`, `:smart `or `:lenient`
sourceraw docstring

parseclj

(parse fmt o)
(parse fmt o opts)
source

predefined-formattersclj

source

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

× close