     [clojure.spec.alpha :as s]
     [clojure.string :as str]
     [tick.interop :as t.i]
-    #?(:cljs 
+    #?(:cljs
        [tick.js-joda :refer [Date Clock ZoneId ZoneOffset Instant Duration Period DayOfWeek Month ZonedDateTime LocalTime LocalDateTime LocalDate Year YearMonth ZoneId OffsetDateTime OffsetTime ChronoUnit ChronoField TemporalAdjusters]]))
   #?(:clj
      (:import

       (divide-duration [n duration] (.dividedBy duration n))
       Duration
       (divide-duration [divisor duration]
          #?(:clj (clojure.core// (t.i/getter seconds duration) (t.i/getter seconds divisor)) 
             :cljs (cljs.core// (.seconds duration) (.seconds divisor))) ))

(extend-type Duration

  (> [x y] (.isAfter x y))
  (>= [x y] (not (.isBefore x y))))

#?(:cljs
   (extend-protocol IComparable
     Instant
     (-compare [x y] (.compareTo x y))
     LocalDateTime
     (-compare [x y] (.compareTo x y))
