On Apr 12, 2014, at 7:24 AM, Cecil Westerhof <cldwester...@gmail.com> wrote:

> 2014-04-12 11:40 GMT+02:00 Max Penet <m...@qbits.cc>:
> Be aware that SimpleDateFormat is not threadsafe though.
> 
> What should I use instead of SimpleDateFormat then?  

One solution to that facet of the problem is to use a ThreadLocal instance of 
SimpleDateFormat.

There's an example of that here: 
https://github.com/clojure/clojure/blob/clojure-1.6.0/src/clj/clojure/instant.clj#L160

--Steve

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to