Liking cljdoc? Tell your friends :D

hara.time.data.coerce


coerce-instantclj

(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
raw docstring

coerce-zoneclj

(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))
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close