ryoakg
5/14/2016 - 12:32 PM

timestamp.clj

;;; Perhaps they are equivalent or too close.
[(.getTime (java.util.Date.)) (System/currentTimeMillis)]

;;; Java8, returns String
(def ^:private timestamp
  (let [f (DateTimeFormatter/ofPattern "uuuu-MM-dd'T'HH:mm:ssX")
        z (ZoneId/of "UTC")]
    #(.format (ZonedDateTime/now z) f)))