File: time.clj

package info (click to toggle)
fonts-firacode 6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,796 kB
  • sloc: sh: 287; python: 146; makefile: 19
file content (13 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
(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)))