 ;; Thanks Devin Humbert!
 ;; https://www.cromulentbits.com/clojure-readable-time-duration/
 (defn human-duration
+  "Takes a number of seconds and returns a human readable version of
+  the duration.  e.g. 1232352 -> '14d 6h 19m 12s'.  Currently only
+  handles up to a granularity in days."
   [secs]
   (let [isecs (int secs)
         days (quot isecs 86400)

                   (when (> hours 0) (str hours "h"))
                   (when (> minutes 0) (str minutes "m"))
                   (str seconds "s"))))))

            [clj-time.core :as t]
            [clj-time.format :as f]
            [clojure.string :as str]
            [slingshot.slingshot :refer [throw+]])
  (:import [org.joda.time Period]))

(defn now []
  (t/now))
