Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
devurandom opened this issue Dec 7, 2023 · 1 comment
Open

Comments

@devurandom
Copy link

devurandom commented Dec 7, 2023

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
Copy link
Author

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 devurandom changed the title java-time.api/> comparison support for java.sql.Timestamp t/> comparison and t/plus arithmetic support for java.sql.Timestamp Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant