1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-07-14 16:20:28 +03: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)))