seancorfield/clj-time — pull request #12 by r0man (2012-02-11 13:15:04+00:00)
Title: Coerce protocol

Hi Sean,

I'm using clj-time in a lot of my projects and it's
great. However, most of the time I need a more flexible coerce
mechanism than what was provided by clj-time so far. I ended up
implementing a protocol similar to what Sean Devlin showed in the
first Clojure Conj "Protocol XIII: Clojure Protocols Explained"
video.

With this implementation you can throw any object implementing
the ICoerce protocol to the to-date, to-date-time, to-long,
etc. fns.

Multi tests are passing on all Clojure versions in the
project.clj file. Would you like to merge my "coerce-protocol"
branch into your master, so I and hopefully others can get rid of
their custom corece implementations?

Roman.