Menu

#31 support setFirstDayOfWeek

open
nobody
None
6
2012-10-08
2007-12-14
No

Could you please consider adding support for
setFirstDayOfWeek
to the appropriate Chronology classes?

This would make things more consistent with the java.util.Calendar API.

In particular, I am currently trying to compare the behaviour of java.util.Calendar, Joda and the Apache MyFaces Tomahawk calendar (javascript) with respect to handling weekOfWeekYear, but can only compare them for firstDayOfWeek=monday because Joda does not support other days.

Yes, I know that Monday is the official ISO first-day-of-week.

Thanks.

Discussion

  • Stephen Colebourne

    Logged In: YES
    user_id=408725
    Originator: NO

    I suspect that adding this could be a little tricky. Its not at the top of my TODO list, especially with JSR-310 ongoing.

     
  • Stephen Colebourne

    Might be able to add something to get the day of week value differently, but the "setFirstDayOfWeek" concept doesn't fit Joda-Time's API style

     

Log in to post a comment.