(coerce-instant value {:keys [type] :as opts})
coercion of one instant object to another (-> ^Calendar (coerce-instant 0 {:type Calendar}) (.getTime) (.getTime)) => 0
coercion of one instant object to another (-> ^Calendar (coerce-instant 0 {:type Calendar}) (.getTime) (.getTime)) => 0
(coerce-zone value {:keys [type] :as opts})
coercion of one zone object to another (-> (coerce-zone "Asia/Kolkata" {:type TimeZone}) (string/-to-string)) => "Asia/Kolkata"
(-> (coerce-zone nil {:type TimeZone}) (string/-to-string)) => (-> (TimeZone/getDefault) (string/-to-string))
coercion of one zone object to another (-> (coerce-zone "Asia/Kolkata" {:type TimeZone}) (string/-to-string)) => "Asia/Kolkata" (-> (coerce-zone nil {:type TimeZone}) (string/-to-string)) => (-> (TimeZone/getDefault) (string/-to-string))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close