A clojure newbie question. I am trying to figure out the best way to pass a date from a client (written in any language) to a server written in clojure that rests on a Datomic database. To avoid any problems with language specific classes I was planning to pass the date as a RFC3339 formatted string. However, I'm having trouble parsing the string in Clojure. My, apparently erroneous, assumption was that I could do:
(clojure.instant/parse-timestamp "2014")
and thus get an instant. However, this call results in
clojure.lang.ArityException: Wrong number of args (1) passed to: instant$fn--6183$fn …
This confuses me greatly since as far as I can see this function only takes a single argument (formatted string).
What have I missed?
var
s. Seedef
.defn
is based ondef
. – Michikomichon