function | previously cljs.spec/inst-in-range? | clojure.spec.alpha/inst-in-range? | Edit |
(inst-in-range? start end inst)
Return true if inst at or after start and before end
(defn inst-in-range?
[start end inst]
(c/and (inst? inst)
(let [t (inst-ms inst)]
(c/and (<= (inst-ms start) t) (< t (inst-ms end))))))