(from-map {:keys [millisecond second minute hour day month year timezone]})
creates a Calendar object from a map
(cal/from-map (t/epoch {:timezone "GMT"})) => java.util.Calendar
creates a Calendar object from a map (cal/from-map (t/epoch {:timezone "GMT"})) => java.util.Calendar
(with-timezone t tz)
adds the timezone to a Calendar object
(-> (cal/from-map (t/epoch {:timezone "EST"})) (cal/with-timezone "GMT")) => java.util.Calendar ;;#inst "1970-01-01T00:00:00.000+00:00"
adds the timezone to a Calendar object (-> (cal/from-map (t/epoch {:timezone "EST"})) (cal/with-timezone "GMT")) => java.util.Calendar ;;#inst "1970-01-01T00:00:00.000+00:00"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close