On Fri, May 20, 2011 at 2:54 AM, Ken Wesson <kwess...@gmail.com> wrote:
> => (def r (put (DateMap. {}) :foo (java.util.Date.)))
> #'user/r
> => r
> {:foo "Thu May 19 22:44:37 PDT 2011"}
> => (get-as-date r :foo)
> #<Date Thu May 19 22:44:10 PDT 2011>

Bah, copy and paste error. Test it and you'll find it works
regardless. Somehow I got the result from (get-as-date q :foo) copied
here, but with that value of :foo in r (get-as-date r :foo) yields
22:44:37.

-- 
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.

-- 
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