dm3/clojure.java-time

t/> comparison and t/plus arithmetic support for java.sql.Timestamp

devurandom opened this issue · 1 comments

Would it be possible for java-time.api/> (and similar) to support java.sql.Timestamp?

(require '[java-time.api :as t])

(t/> (t/instant->sql-timestamp (t/instant))
     (t/instant))

throws: No implementation of method: :single-after? of protocol: #'java-time.core/Ordered found for class: java.sql.Timestamp

Similar for java-time.api/plus and java.sql.Timestamp, which throws java.lang.IllegalArgumentException: No implementation of method: :seq-plus of protocol: #'java-time.core/Plusable found for class: java.sql.Timestamp.