Liking cljdoc? Tell your friends :D

dgknght.app-lib.dates


earliestclj/s

(earliest & dates)
source

intervalsclj/s

(intervals start interval)
source

latestclj/s

(latest & dates)
source

nominal->betweenclj/s

(nominal->between m key-base)
source

nominal-comparativesclj/s

(nominal-comparatives m key-base)

Accepts a map and a key base and converts values with attributes that match the key base from symbolic comparatives into nominal comparatives.

(nominal-comparatives {:end-on [:> some-date]} :end) => {:end-after some-date}

Accepts a map and a key base and converts values with attributes
that match the key base from symbolic comparatives into nominal
comparatives.

(nominal-comparatives {:end-on [:> some-date]} :end) => {:end-after some-date}
sourceraw docstring

nominal-keysclj/s

(nominal-keys canonical)

Given a canonical key, return all of the nominal variants

Given a canonical key, return all of the nominal variants
sourceraw docstring

parse-intervalclj/s

(parse-interval value)

Takes a string containing a date or partial date and returns a corresponding interval

2015 => (t/interval (t/date-time 2015 1 1) (t/date-time 2016 1 1)) 2015-03 => (t/interval (t/date-time 2015 3 1) (t/date-time 2015 4 1)) 2015-03-02 => (t/interval (t/date-time 2015 3 2) (t/date-time 2015 3 3))

Takes a string containing a date or partial date and returns a corresponding interval

2015       => (t/interval (t/date-time 2015 1 1) (t/date-time 2016 1 1))
2015-03    => (t/interval (t/date-time 2015 3 1) (t/date-time 2015 4 1))
2015-03-02 => (t/interval (t/date-time 2015 3 2) (t/date-time 2015 3 3))
sourceraw docstring

parse-rangeclj/s

(parse-range value)

Accepts a date range in a variety of formats and returns a tuple containing the start and end dates, like [start end].

2015 => [#local-date 2015-01-01 #local-date 2015-12-31] 2015-03 => [#local-date 2015-03-01 #local-date 2015-03-31] 2015-03-02 => [#local-date 2015-03-02 #local-date 2015-03-02] #local-date 2015-03-03 => [#local-date 2015-03-02 #local-date 2015-03-02]

Accepts a date range in a variety of formats and returns
a tuple containing the start and end dates, like [start end].

2015                   => [#local-date 2015-01-01 #local-date 2015-12-31]
2015-03                => [#local-date 2015-03-01 #local-date 2015-03-31]
2015-03-02             => [#local-date 2015-03-02 #local-date 2015-03-02]
#local-date 2015-03-03 => [#local-date 2015-03-02 #local-date 2015-03-02]
sourceraw docstring

periodclj/s

(period interval-type interval-count)
source

rangesclj/s

(ranges start interval)
source

relativeclj/s

(relative desc)
source

symbolic-comparativesclj/s

(symbolic-comparatives m key-base)

Accepts a map with comparative keys and updates the values with symbolic operators.

(symbolic-comparatives {:end-after some-date} :end) => {:end-on [:> some-date]}

Accepts a map with comparative keys and updates the
values with symbolic operators.

(symbolic-comparatives {:end-after some-date} :end) => {:end-on [:> some-date]}
sourceraw docstring

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

× close