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