Liking cljdoc? Tell your friends :D

duckling.time.prod


compose-moneyclj

(compose-money m1 m2)

'add' money for '(4 dollars) (43 cents)'

'add' money for '(4 dollars) (43 cents)'
sourceraw docstring

compose-numbersclj

(compose-numbers n1 n2)

'add' numbers for '(two thousands) (three hundreds)'

'add' numbers for '(two thousands) (three hundreds)'
sourceraw docstring

cycle-last-ofclj

(cycle-last-of cycle base)
source

cycle-nclj

(cycle-n grain n)
source

cycle-n-not-immediateclj

(cycle-n-not-immediate grain n)
source

cycle-nthclj

(cycle-nth grain n)
source

cycle-nth-afterclj

(cycle-nth-after grain n {:keys [pred] :as token})
source

cycle-nth-after-not-immediateclj

(cycle-nth-after-not-immediate grain n {:keys [pred] :as token})
source

day-of-monthclj

(day-of-month day)
source

day-of-weekclj

(day-of-week dow)
source

dimclj

(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
sourceraw docstring

durationclj

(duration grain n)
source

duration-afterclj

(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.
sourceraw docstring

duration-agoclj

(duration-ago duration)

See in-duration

See in-duration
sourceraw docstring

duration-beforeclj

(duration-before duration {:keys [pred] :as token})
source

hourclj

(hour h & [twelve-hour-clock?])
source

hour-minuteclj

(hour-minute h m & [twelve-hour-clock?])
source

hour-minute-secondclj

(hour-minute-second h m s & [twelve-hour-clock?])
source

hour-relativeminclj

(hour-relativemin h m & [twelve-hour-clock?])
source

in-durationclj

(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.
sourceraw docstring

integerclj

(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
sourceraw docstring

intersectclj

(intersect tok1 tok2)
(intersect tok1 tok2 & more)

Combines several time tokens.

Combines several time tokens.
sourceraw docstring

intervalclj

(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.
sourceraw docstring

minuteclj

(minute m)
source

monthclj

(month mo)
source

month-dayclj

(month-day mo d)
source

parse-dmyclj

(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
sourceraw docstring

parse-number-frclj

(parse-number-fr s)

Parses a string with FRANCE locale. Returns a double

Parses a string with FRANCE locale. Returns a double
sourceraw docstring

pred-last-ofclj

(pred-last-of cyclic base)
source

pred-nthclj

(pred-nth {:keys [pred] :as token} n)
source

pred-nth-afterclj

(pred-nth-after cyclic base n)
source

pred-nth-not-immediateclj

(pred-nth-not-immediate {:keys [pred] :as token} n)
source

secclj

(sec s)
source

set-meridiemclj

(set-meridiem tod ampm-first-letter)
source

set-timezoneclj

(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.
sourceraw docstring

ticlj

(ti pred & [m])
source

yearclj

(year y)
source

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

× close