Liking cljdoc? Tell your friends :D

humane-time.ops

Contains data and functions to be used by the functions in the core namespace.

Contains data and functions to be used by the functions in the core namespace.
raw docstring

datetime-descriptorcljs

(datetime-descriptor date-string)

Takes a date string and returns a map after some destructuring. Accepts date-string only in the form of DD-MM-YYYY and YYYY-MM-DD formats. DD and MM could just be D or M.

Takes a date string and returns a map after some destructuring. 
Accepts date-string only in the form of `DD-MM-YYYY` and `YYYY-MM-DD` formats. `DD` and `MM` could just be `D` or `M`.
sourceraw docstring

duration-descriptorcljs

(duration-descriptor date-string & end-time)

Returns a map that describes the duration between a start and end-time in different units. For each unit, the value semantics is of lower bound. To elaborate: If the difference (in years) is 2 years and 10 months, then the value of :years will be 2, not 3. But, the value of :months will be 34. Similarly, if the difference in months is 5 months and 3 weeks, the the value of :months will be 5, not 6. But, the value of :weeks will be 23. If no end-time is provided, the the current time will be considered as the end-time.

Returns a map that describes the duration between a start and end-time in different units.
For each unit, the value semantics is of lower bound. To elaborate:
If the difference (in years) is 2 years and 10 months, then the value of `:years` will be 2, not 3. But, the value of `:months` will be 34.
Similarly, if the difference in months is 5 months and 3 weeks, the the value of `:months` will be 5, not 6. But, the value of `:weeks` will be 23.
If no `end-time` is provided, the the current time will be considered as the `end-time`.
sourceraw docstring

month-indexcljs

source

month-index-shortcljs

source

singular->pluralcljs

(singular->plural singular-text val)

Simply adds an s at the end of the singular-text arg if val is greater than 1.

Simply adds an `s` at the end of the singular-text arg if `val` is greater than 1.
sourceraw docstring

week-indexcljs

source

week-index-shortcljs

source

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

× close