aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode/cljfmt/out.clj
blob: 6738667653bd779f14f8eacf260e68916a7f89a2 (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))))