dotfiles/init/FiraCode/clojure/fira_code/time.clj

14 lines
268 B
Clojure
Raw Normal View History

2020-05-07 09:30:45 +02:00
(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)))