[ANN] new Clojure(Script) Date/Time libraries based on java.time

124 views
Skip to first unread message

Henry Widd

unread,
May 21, 2019, 8:23:36 AM5/21/19
to Clojure

Hey everyone, 


Java.time is a platform library which was introduced in Java 8 and is a refinement of Joda Time (which the popular clj-time sits on).  Now that there is also a Javascript implementation of java.time, it has been possible to create the following libraries: 


cljc.java-time  - this mirrors the java.time api directly (it was auto-generated via reflection on java.time) but code written with it will compile to Clojure and ClojureScript.  

time-literals  - also a Clojure(Script) library, this provides a set of tagged literals for objects from the java.time domain and the relevant readers/printers for these. For it's most basic application and if you are only using java.time directly on the jvm, this library will be interesting because java.time objects output in the REPL can be pasted back in. 


My talk at Clojure/North  provides more background on these and other java.time related libraries.


Thanks,

Henry  



Reply all
Reply to author
Forward
0 new messages