Простые типы / Дата и время

(import '[java.time LocalDateTime]
        '[java.time.format DateTimeFormatter])

(def now (LocalDateTime/now))

(def standard-style (str now))
; standard-style is "2026-08-16T11:45:22.971779969"

(def custom-style (.format now (DateTimeFormatter/ofPattern "yyyy-MM-dd")))
; custom-style is "2026-08-16"

(def short-style (.format now (DateTimeFormatter/ofPattern "MM/dd/yy hh:mm a")))
; short-style is "08/16/26 11:45 AM"

(def worded-style (.format now (DateTimeFormatter/ofPattern "'Today' dd MMMM")))
; worded-style is "Today 16 August"

(println "standard-style is" standard-style)
(println "custom-style is" custom-style)
(println "short-style is" short-style)
(println "worded-style is" worded-style)