time.clj 268 B

12345678910111213
  1. (ns fira-code.time
  2. (:import
  3. [java.time LocalDateTime ZoneId]
  4. [java.time.format DateTimeFormatter]))
  5. (def ^ZoneId UTC (ZoneId/of "UTC"))
  6. (defn now-str []
  7. (.format
  8. (DateTimeFormatter/ofPattern "yyyy-MM-dd HH:mm:ss +0000")
  9. (LocalDateTime/now UTC)))