Fork me on GitHub
#clojurescript
<
2022-06-06
>
jpmonettas16:06:33

Hi everybody! I'm happy to share the latest version of FlowStorm, a Clojure and ClojureScript debugger. FlowStorm 2.2.59 supports ClojureScript! support is still limited compared to Clojure but you can still trace the execution of any form at the repl. https://github.com/jpmonettas/flow-storm-debugger/ For ClojureScript instructions check https://github.com/jpmonettas/flow-storm-debugger/blob/master/docs/ClojureScript.md Cheers!

🎉 7
emccue17:06:27

I can't seem to find a way from cljc-java-time to and from dates. Need to have a way to do that otherwise i can't really seamlessly replace moment in one go

henryw37405:06:27

various, but generally via epoch millis. e.g. demo roundtrip

(require '[cljc.java-time.instant :as i])

cljs.user=> (-> (js/Date.) (.getTime) (i/of-epoch-milli) (i/to-epoch-milli) (js/Date.))
#inst "2022-06-07T05:47:09.249-00:00"

henryw37405:06:48

js-joda does have extra fns to do this, see https://js-joda.github.io/js-joda/manual/convert-native.html but I'm not sure they add much, and above example is basically cross platform