Skip to content

Instantly share code, notes, and snippets.

@ruseel
Created October 1, 2018 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruseel/bcd7ec7c31ef101d68112ea2a1b2709f to your computer and use it in GitHub Desktop.
Save ruseel/bcd7ec7c31ef101d68112ea2a1b2709f to your computer and use it in GitHub Desktop.
java.sql.Timestamp - clojure.data.json
(require '[clojure.data.json :refer [write JSONWriter]])
(defn write-timestamp [x out]
(write (str x) out))
(extend java.sql.Timestamp JSONWriter {:-write write-timestamp})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment