clojure.java-time icon indicating copy to clipboard operation
clojure.java-time copied to clipboard

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

Open devurandom opened this issue 2 years ago • 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

devurandom avatar Dec 07 '23 15:12 devurandom

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.

devurandom avatar Dec 18 '23 12:12 devurandom