Petr,

I do not know of a function in clojure core or clojure contrib that does 
what you request.  I wrote a function called set-bean for that purpose: 
https://github.com/billsmith/clojure-code/blob/master/clj/billsmith/util.clj
.

Here is an example of how to use set-bean:

    (billsmith.util/set-bean (java.util.GregorianCalendar.) {:firstDayOfWeek 
3, :lenient true, :minimalDaysInFirstWeek 7})

It is not very efficient, and I would not recommend using it in a tight 
loop.  However, it is adequate for occasional use.

Bill Smith

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