简单类型 / 日期和时间

(import '[java.time LocalDate LocalDateTime])

; a day alone
(def victory-day (LocalDate/of 1945 5 9))

; a day with a time on it
(def victory-moment (LocalDateTime/of 1945 5 9 1 0))

; the same day read from its ISO text
(def parsed-day (LocalDate/parse "1945-05-09"))

(println "victory-day is" (str victory-day))
(println "victory-moment is" (str victory-moment))
(println "parsed-day is" (str parsed-day))
(println "all three days are equal:" (= victory-day parsed-day (
                          .toLocalDate victory-moment)))