Skip to content

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

Open
@devurandom

Description

@devurandom
Contributor

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

Activity

devurandom

devurandom commented on Dec 18, 2023

@devurandom
ContributorAuthor

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.

changed the title [-]java-time.api/> comparison support for java.sql.Timestamp[/-] [+]t/> comparison and t/plus arithmetic support for java.sql.Timestamp[/+] on Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @devurandom

        Issue actions

          t/> comparison and t/plus arithmetic support for java.sql.Timestamp · Issue #106 · dm3/clojure.java-time