aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode/cljfmt/in.clj
blob: c783b0f1692da66868eea28f6468481332c30ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(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))))