clj-duckling.dims.time.prod

compose-money

(compose-money m1 m2)
'add' money for '(4 dollars) (43 cents)'

compose-numbers

(compose-numbers n1 n2)
'add' numbers for '(two thousands) (three hundreds)'

cycle-last-of

(cycle-last-of cycle base)

cycle-n

(cycle-n grain n)

cycle-n-not-immediate

(cycle-n-not-immediate grain n)

cycle-nth

(cycle-nth grain n)

cycle-nth-after

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

cycle-nth-after-not-immediate

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

day-of-month

(day-of-month day)

day-of-week

(day-of-week dow)

dim

(dim dim-val & predicates)
Returns a func checking dim of a token and additional preds

duration

(duration grain n)

duration-after

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

duration-ago

(duration-ago duration)
See in-duration

duration-before

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

hour

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

hour-minute

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

hour-minute-second

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

hour-relativemin

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

in-duration

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

integer

(integer & [min max & predicates])
Return a func (duckling pattern) checking that dim=number and integer=true,
optional range (inclusive), and additional preds

intersect

(intersect tok1 tok2)(intersect tok1 tok2 & more)
Combines several time tokens.

interval

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

minute

(minute m)

month

(month mo)

month-day

(month-day mo d)

parse-dmy

(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

parse-number-fr

(parse-number-fr s)
Parses a string with FRANCE locale. Returns a double

pred-last-of

(pred-last-of cyclic base)

pred-nth

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

pred-nth-after

(pred-nth-after cyclic base n)

pred-nth-not-immediate

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

sec

(sec s)

set-meridiem

(set-meridiem tod ampm-first-letter)

set-timezone

(set-timezone token timezone-id)
Sets the provided timezone. Must be a java.util.TimeZone compatible ID.

ti

(ti pred & [m])

year

(year y)