Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将我从 clj-time 获得的结果转换为真实日期。
require [clj-time.core :as t] (t/today) ;; [#<LocalDate 2015-08-25> 15]
我需要这样的日期:
;; 2015-08-25
joda 时间,因此 clj-time 以某种方式区分“常规”日期时间和本地日期时间;因为(t/today)是一个org.joda.time.LocalDate尝试unparse-local:
(t/today)
org.joda.time.LocalDate
unparse-local
user=> (f/unparse-local (f/formatter "Y-MM-dd") (t/today)) "2015-08-25"