clojure.java-time
clojure.java-time copied to clipboard
Java 8 Date-Time API for Clojure
First of all, thanks for the library! We (@estikado and I) are in the process of migrating an application from [clj-time](https://github.com/clj-time) to clojure.java-time. Given we use [Clojure spec](https://clojure.org/guides/spec), we were...
I want to parse a date for given string `"Jan 1 2010"`. Since my locale is PL, `(dt/local-date "MMM d yyyy" "Jan 1 2010")` doesn't work. What works is: `(dt/local-date...
Thanks for an elegant wrapper. I currently have to drop into interop to make a [`LocalDateRange`](https://www.threeten.org/threeten-extra/apidocs/org/threeten/extra/LocalDateRange.html) from `org.threeten.extra`. Do you have any plans to bring it in? I note you...
Naming
Unfortunately it's in breach of the Clojure and Java trademarks to use them in your own software name. There is a valid risk of confusion too. You might as well...
I want to process a timeseries with monthly labels, so something like "2012-10" etc, but parser seems unhappy with this. I understand why, but it's pretty impractical. ``` user> (local-date-time...
Use [js-joda](https://github.com/js-joda/js-joda/) as the javascript impl.
`java-time.repl` provides a `show-path` function which provides a way to peek into the conversion graph. It's nice when one already knows the types used for the conversion, but doesn't help...
No temporal unit found for :hour! should be `(as (duration 1 :hours) :minutes)`
Would it be possible for `java-time.api/>` (and similar) to support `java.sql.Timestamp`? ```clj (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...
`(local-date-time "M/d/yyyy h:mm:ss a" "1/3/2022 3:58:29 PM")` ``` Execution error (DateTimeParseException) at java.time.format.DateTimeFormatter/parseResolved0 (DateTimeFormatter.java:2051). Text '1/3/2022 3:58:29 PM' could not be parsed at index 17 ``` Some sleuthing in the...