#jsr310/period "P1D"
Get the latest from Clojars and
add to your project.clj
, build.boot
or deps.edn
.
To use tick with Shadow-CLJS, there are some extra steps
There are many use cases for de/serialization of dates, including simply being able to copy and paste within the REPL. Tick bundles jsr310-tagged-literals Clojure(Script) library, so having require’d tick, in your code or at the repl you can type
#jsr310/period "P1D"
which is read as a java.time.Period (or js-joda Period in ClojureScript).
To read and write edn data containing these literals in Clojure(Script) and for more information generally, see the tagged literals Readme
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close