Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 443 Bytes

inst-p.md

File metadata and controls

12 lines (9 loc) · 443 Bytes

inst?

(inst? x)

clojure.core/inst?: true for an instant the oracle's Inst protocol takes -- an #inst (a java.util.Date), a clojure.instant Timestamp, and on the interpreter and the JVM a host java.util.Date or java.time.Instant; false for anything else, a Calendar included. As a value a one-argument function.

(println (inst? #inst "2020-01-01") (inst? "2020-01-01"))  ; true false