Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
reprod
  • Loading branch information
frenchy64 committed Jul 20, 2022
commit e1299dd622223c1b3efd0df4dfd49617f13b2d0f
7 changes: 7 additions & 0 deletions test/java_time_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1100,3 +1100,10 @@
(is (= (j/zoned-date-time #inst "1970-01-01T00:00:00.100" "UTC")
(-> (j/instant 100)
(j/zoned-date-time "UTC")))))

(deftest sql-time-to-local-time-test
(is (= (j/local-time 1 12 13 456000000)
(j/local-time (j/sql-time (j/local-time 1 12 13 456000000)))))
(is (= (j/sql-time (j/local-time 1 12 13 456000000))
(let [millis-of-day (.get (j/local-time 1 12 13 456000000) java.time.temporal.ChronoField/MILLI_OF_DAY)]
(java.sql.Time. millis-of-day)))))