No changes yet.
clj-time.format/with-default-year
is a new function that accepts a formatter
and returns a formatter that uses provided year by default.
Contributed by lummax.
clj-time.core/InTimeUnitProtocol
is a new protocol that provides convenient
functions for time unit conversion:
(defprotocol InTimeUnitProtocol
"Interface for in-<time unit> functions"
(in-millis [this] "Return the time in milliseconds.")
(in-seconds [this] "Return the time in seconds.")
(in-minutes [this] "Return the time in minutes.")
(in-hours [this] "Return the time in hours.")
(in-days [this] "Return the time in days.")
(in-weeks [this] "Return the time in weeks")
(in-months [this] "Return the time in months")
(in-years [this] "Return the time in years"))
clj-time
now officially supports Clojure 1.5.1
and later versions.
Joda Time has been upgraded to 2.6
.