2
我想将clojure时间戳转换为特定格式。我正在使用clj-time库。 https://github.com/clj-time/clj-time。下面是我在做什么:Clojure解析时间戳到字符串
(f/unparse :year-month-day (t/date-time 2010 10 3))
至极很像文档的例子,但我不明白为什么我得到一个ClassCastException寻找这样的:
ClassCastException clojure.lang.Keyword cannot be cast to org.joda.time.format.DateTimeFormatter clj-time.format/unparse (format.clj:185)
感谢您的帮助。