(compose-money m1 m2)
'add' money for '(4 dollars) (43 cents)'
'add' money for '(4 dollars) (43 cents)'
(compose-numbers n1 n2)
'add' numbers for '(two thousands) (three hundreds)'
'add' numbers for '(two thousands) (three hundreds)'
(cycle-nth-after-not-immediate grain n {:keys [pred] :as token})
(dim dim-val & predicates)
Returns a func checking dim of a token and additional preds
Returns a func checking dim of a token and additional preds
(duration-after duration {:keys [pred] :as token})
Shifts the pred to pred+duration and changes the grain, typically to the one just below the duration grain. See pred.clj for conversion.
Shifts the pred to pred+duration and changes the grain, typically to the one just below the duration grain. See pred.clj for conversion.
(in-duration duration)
Shifts the present to present+duration and changes the grain, typically to the one just below the duration grain. See pred.clj for conversion.
Shifts the present to present+duration and changes the grain, typically to the one just below the duration grain. See pred.clj for conversion.
(integer & [min max & predicates])
Return a func (duckling pattern) checking that dim=number and integer=true, optional range (inclusive), and additional preds
Return a func (duckling pattern) checking that dim=number and integer=true, optional range (inclusive), and additional preds
(intersect tok1 tok2)
(intersect tok1 tok2 & more)
Combines several time tokens.
Combines several time tokens.
(interval tok1 tok2 to-inclusive?)
Interval between two tokens. The interval starts at the start of tok1, and ends at the start of tok2. The grains of tok1 and tok2 must be equal. If to-inclusive? is true, it ends at the end of tok2.
Interval between two tokens. The interval starts at the start of tok1, and ends at the *start* of tok2. The grains of tok1 and tok2 must be equal. If to-inclusive? is true, it ends at the *end* of tok2.
(parse-dmy day-string mo-string y-string convert-two-digit-year?)
Build date from day, month, year as strings of numerics. Please provide at least one non-nil argument
Build date from day, month, year as strings of numerics. Please provide at least one non-nil argument
(parse-number-fr s)
Parses a string with FRANCE locale. Returns a double
Parses a string with FRANCE locale. Returns a double
(set-timezone token timezone-id)
Sets the provided timezone. Must be a java.util.TimeZone compatible ID.
Sets the provided timezone. Must be a java.util.TimeZone compatible ID.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close