clojure.java-time
clojure.java-time copied to clipboard
Java 8 Date-Time API for Clojure
https://github.com/babashka/babashka/pull/1379
When conversion fails, `java-time.api` wraps the `java.time.format.DateTimeParseException` in `clojure.lang.ExceptionInfo`, which I cannot distinguish from any other exception when trying to catch: ```clj (import '(java.time.format DateTimeParseException)) (try (t/zoned-date-time "2024-04-08T00:00:00") (catch DateTimeParseException...
Hi, I'm filing this tongue-in-cheek, but I hope it's edifying. I did a coding test for a job today. I used clj-time. I got the right answers. Later on I...
Closes: https://github.com/dm3/clojure.java-time/issues/111
formatter doc showed * resolver-style - either :strict, `:smart `or :lenient
The docstrings in `java-time.api` contain literal `\n` instead of newlines, which makes them hard to read in code. Cursive does not display them nicely either, but shows the documentation with...
```clj (jt/instant (jt/formatter "YYYYMMdd'T'HHmmssX" {:resolver-style :lenient :case :insensitive}) "20240611T131542Z") ; throws: ; java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: InstantSeconds ; java.time.DateTimeException: Unable to obtain Instant from TemporalAccessor: {MonthOfYear=6, WeekBasedYear[WeekFields[SUNDAY,1]]=2024, DayOfMonth=11, OffsetSeconds=0},ISO resolved to...