简单类型 / 日期和时间

(import '[java.time LocalDateTime])

(def now (LocalDateTime/now))

(def year (.getYear now))
(def month (.getMonthValue now))
(def day (.getDayOfMonth now))
(def hour (.getHour now))
(def minute (.getMinute now))
(def second (.getSecond now))
(def day-of-week (str (.getDayOfWeek now)))
; day-of-week is "SUNDAY"

(println "now is" (str now))
(println "year is" year)
(println "month is" month)
(println "day is" day)
(println "hour is" hour)
(println "minute is" minute)
(println "second is" second)
(println "day-of-week is" day-of-week)