This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns groupon.joda-instant-reader | |
(:require [clojure.instant :as i]) | |
(:import org.joda.time.DateTime)) | |
(defmethod print-method org.joda.time.DateTime | |
[^org.joda.time.DateTime d ^java.io.Writer w] | |
(#'i/print-date (java.util.Date. (.getMillis d)) w)) | |
(defmethod print-dup org.joda.time.DateTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns groupon.joda-instant-reader | |
(:require [clojure.instant :as i]) | |
(:import org.joda.time.DateTime)) | |
(defmethod print-method org.joda.time.DateTime | |
[^org.joda.time.DateTime d ^java.io.Writer w] | |
(#'i/print-date (java.util.Date. (.getMillis d)) w)) | |
(defmethod print-dup org.joda.time.DateTime |