I would serialize to json and save the dates in millis. That's been
working for me for quite awhile.

Cheers, Jay

On Mon, Apr 16, 2012 at 10:29 AM, Adam Markham <adamjmark...@gmail.com> wrote:
> I want to save a list of Clojure maps to a text file. The problem is I
> have a :date key which contains a java.util.Date object, At the moment
> I am using:
>
> (spit "file.txt" clj-map)
>
> to save the file. However the dates are printed in the format #<Date
> Mon Apr 16 15:22:27 BST 2012>
>
> How can I store the date in a text file and read it back without
> falling back on Java serialization?
>
> Thanks,
>
> Adam
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to