(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |