1
0
Fork 0
mirror of synced 2024-05-03 12:13:22 +12:00
FiraCode/clojure/fira_code/time.clj
2020-03-24 00:37:50 +01:00

14 lines
268 B
Clojure

(ns fira-code.time
(:import
[java.time LocalDateTime ZoneId]
[java.time.format DateTimeFormatter]))
(def ^ZoneId UTC (ZoneId/of "UTC"))
(defn now-str []
(.format
(DateTimeFormatter/ofPattern "yyyy-MM-dd HH:mm:ss +0000")
(LocalDateTime/now UTC)))