Liking cljdoc? Tell your friends :D

jedi-time.core

Navigable datafied versions of the core java.time objects.

Navigable datafied versions of the core `java.time` objects.
raw docstring

invalid!clj

(invalid! k)

Controls what happens when a key is not recognised. Throws ex-info (by default), but can be dynamically rebound.

Controls what happens when a key is not recognised.
Throws ex-info (by default), but can be dynamically rebound.
sourceraw docstring

now!clj

(now!)
(now! {:keys [as zone clock] :or {as :instant}})

Returns a Temporal object in the specified <as> mode (defaults to :instant) representing the current point in time. A custom Clock <clock>, and/or a specific time-zone <zone-id> can be provided. If both are provided, the Clock takes precedence. Consumers may need to type-hint (per <as>) at the call-site (in case Temporal doesn't suffice).

Returns a Temporal object in the specified <as> mode
(defaults to :instant) representing the current point in time.
A custom Clock <clock>, and/or a specific time-zone <zone-id> can be provided.
If both are provided, the Clock takes precedence.
Consumers may need to type-hint (per <as>) at the call-site (in case Temporal doesn't suffice).
sourceraw docstring

redatafyclj

Composes datafy withundatafy (via comp). Useful for re-obtaining nav capabilities if the metadata was lost (e.g by serialisation).

Composes `datafy` with`undatafy` (via `comp`).
Useful for re-obtaining `nav` capabilities
if the metadata was lost (e.g by serialisation).
sourceraw docstring

undatafyclj

(undatafy x)

Looks up the :clojure.datafy/obj key in the metadata of <x>, and makes sure it matches <x>. If it fails, reconstructs the appropriate temporal object from scratch (assuming keys per d/datafy). If that fails, returns/throws (invalid! {:datafied/not x}).

Looks up the `:clojure.datafy/obj` key in the metadata of <x>,
and makes sure it matches <x>. If it fails, reconstructs the
appropriate temporal object from scratch (assuming keys per `d/datafy`).
If that fails, returns/throws `(invalid! {:datafied/not x})`.
sourceraw docstring

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

× close