A clojure newbie question. I am trying to find the best way to transfer the date from a client (written in any language) to a server written in clojure, which relies on the Datomic database. To avoid problems with language classes, I planned to pass the date as a formatted string RFC3339. However, I had a problem parsing a string in Clojure. My apparently erroneous assumption was that I could do:
(clojure.instant/parse-timestamp "2014")
and thus get a moment. However, this call leads to
clojure.lang.ArityException: Wrong number of args (1) passed to: instant$fn--6183$fn …
This bothers me a lot because, as far as I can see, this function takes only one argument (formatted string).
What did I miss?
source
share