(handle-ordinal-day day)
Given a day
which has been ordinal, transform to either that day
later this week, or if the day given has already passed, that day
next month.
Given a `day` which has been ordinal, transform to either that day later this week, or if the day given has already passed, that day next month.
(handle-ts & values)
Convert [[:hour 2] [:min 3] [:meridiem 'pm']]
into a 24-hour
timestamp.
Convert `[[:hour 2] [:min 3] [:meridiem 'pm']]` into a 24-hour timestamp.
(midnight)
(midnight date)
Returns midnight for the date provided at date
. cljs-time has
`at-midnight', but clj-time doesn't seem to...
Returns midnight for the date provided at `date`. cljs-time has `at-midnight', but clj-time doesn't seem to...
(timestamp-to-day date {:keys [hour min]})
Given a timestamp in the format {:hour h :min m}
, set the
time for given date
to that time.
Given a timestamp in the format `{:hour h :min m}`, set the time for given `date` to that time.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close