aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode/cljstyle/out.clj
blob: 69c2dbb8cc897edef9dc192f4f4713ef6b5e2c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(ns hello
  (:require
    [java-time.api :as t]))


(defn time-str
  "Returns a string representation of a datetime in the local time zone."
  [instant]
  (t/format
    (t/with-zone (t/formatter "hh:mm a") (t/zone-id))
    instant))


(defn run
  [opts]
  (println "Hello world, the time is" (time-str (t/instant))))