andrewplummer/Sugar — pull request #326 by pierrickrouxel (2013-05-23 13:55:24+00:00)
Title: Add support for ISO weekday

ISO-8601 standard specify monday as first day of week (1) and sunday as last (7).

Date.create().setWeekday(6).beginningOfWeek() goes to sunday.

Date.create().setWeekday(6).beginningOfISOWeek() goes to monday.

Methods added :
* Date#beginningOfISOWeek()
* Date#endOfISOWeek()
* Date#setISOWeek(dow)
* Date#getISOWeek()

Thanks.