Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.model.bounds


bounded-time?clj

(bounded-time? bounds date-time)

Is date-time within any of the bounds? Returns vacuously true if bounds is empty.

Is `date-time` within any of the `bounds`? Returns vacuously `true` if
`bounds` is empty.
sourceraw docstring

convert-boundsclj

(convert-bounds bounds)
source

day-of-month?clj

(day-of-month? year month day)

Is day a valid day within each month? i.e. 28 is valid for 2 (i.e. February) but not 30. 29 is valid for 2 if year is a leap year, but not otherwise.

Is `day` a valid day within each month? i.e. `28` is valid for `2`
(i.e. February) but not `30`. `29` is valid for `2` if `year` is a
leap year, but not otherwise.
sourceraw docstring

day-of-weekclj

(day-of-week year month day)

Return the day of week, from 0 (Sunday) to 6 (Saturday), of the date year/month/day.

Return the day of week, from `0` (Sunday) to `6` (Saturday),
of the date `year`/`month`/`day`.
sourceraw docstring

leap-year?clj

(leap-year? year)

Is year a leap year?

Is `year` a leap year?
sourceraw docstring

ms-per-dayclj

source

ms-per-hourclj

source

ms-per-minuteclj

source

ms-per-secondclj

source

ms-per-weekclj

source

next-bounded-timeclj

(next-bounded-time bounds date-time)

Returns the next timestamp after date-time within any of the bounds.

Returns the next timestamp after `date-time` within any of the `bounds`.
sourceraw docstring

string->int-mapclj

source

time-mapclj

(time-map date-time)

Return a map of different times from the LocalDateTime date-time.

Return a map of different times from the LocalDateTime `date-time`.
sourceraw docstring

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

× close