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.
(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`.
(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`.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close