(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}(nominal-keys canonical)Given a canonical key, return all of the nominal variants
Given a canonical key, return all of the nominal variants
(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))
(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]
(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]}cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |