cljs.spec/inst-in

MOVED, please see cljs.spec.alpha/inst-in
macroremoved v1.9.542added v1.9.75Edit
(inst-in start end)

Source docstring:
Returns a spec that validates insts in the range from start
(inclusive) to end (exclusive).
Source code @ clojurescript:src/main/cljs/cljs/spec.cljc
(defmacro inst-in
  [start end]
  `(let [st# (cljs.core/inst-ms ~start)
         et# (cljs.core/inst-ms ~end)
         mkdate# (fn [d#] (js/Date. d#))]
     (spec (and cljs.core/inst? #(inst-in-range? ~start ~end %))
       :gen (fn []
              (gen/fmap mkdate#
                (gen/large-integer* {:min st# :max et#}))))))