Liking cljdoc? Tell your friends :D

duckling.time.api


export-time-valueclj

(export-time-value {:keys [start end grain] :as value} direction date-fn)
source

export-valueclj

(export-value {:keys [dim value direction values] :as token}
              {:keys [date-fn] :as opts})

Given a token, returns its value for the outside world. Datetimes are modified by date-fn.

Given a token, returns its value for the outside world.
Datetimes are modified by date-fn.
sourceraw docstring

resolveclj

(resolve token context)

Given a token presumably produced by this module, returns a list of tokens with a resolved value. For time in particular, predicates are turned into actual time instants or intervals. It returns a list of tokens instead of just one, because several values may be possible. If the token cannot be resolved, :value must be removed.

Given a token presumably produced by this module, returns a list of tokens
with a resolved value. For time in particular, predicates are turned into
actual time instants or intervals.
It returns a list of tokens instead of just one, because several values may
be possible.
If the token cannot be resolved, :value must be removed.
sourceraw docstring

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

× close