std.time.instant.java-util-calendar

calendar-meta

from-map

added in 3.0

(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

with-timezone

added in 3.0

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