mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-08-17 00:40:32 +03:00
14 lines
268 B
Clojure
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)))
|