Set the week of month.
@param weekOfMonthStr the week of month to set.
482697
public void setWeekOfMonth(String weekOfMonthStr) {

        final WeekOfMonth weekOfMonth = WeekOfMonth.valueOf(weekOfMonthStr);
        if ((null == m_model.getWeekOfMonth()) || !m_model.getWeekOfMonth().equals(weekOfMonth)) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    m_model.setWeekOfMonth(weekOfMonth);
                    onValueChange();
                }
            });
        }

    }
534913
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);

		for (short i = 0; i < days.length; i++) {
			if (days[i] != null) {
				days[i].setEnabled(enabled);
			}
		}

		for (short i = 0; i < weeks.length; i++) {
			if (weeks[i] != null) {
				weeks[i].setEnabled(enabled);
			}
		}
	}
85877
public void setFirstDayOfWeek(int value)
    {
        if (firstDayOfWeek != value) {
            if (value < SUNDAY || value > SATURDAY) {
                throw new IllegalArgumentException("Invalid day of week");
            }
            firstDayOfWeek = value;
            areFieldsSet = false;
        }
    }
888945
public static DayOfWeek firstDayOfWeekInMonth(int year, int month) {
		int result = fixedFromGregorian(year, month, 1) % 7;
		if (result < 0) {
			result += 7;
		}
		return DAYS_OF_WEEK[result];
	}
314481
public void setWeekDay(String weekDayStr) {

        final WeekDay weekDay = WeekDay.valueOf(weekDayStr);
        if ((m_model.getWeekDay() != null) || !m_model.getWeekDay().equals(weekDay)) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    m_model.setWeekDay(weekDay);
                    onValueChange();
                }
            });

        }

    }
1192248
protected final void beginOfMonth(final Calendar c) {
        c.set(Calendar.DAY_OF_MONTH,
                c.getActualMinimum(Calendar.DAY_OF_MONTH));
    }
1207000
protected final void firstMonth(final Calendar c) {
        c.set(Calendar.MONTH, c.getMinimum(Calendar.MONTH));
    }
282138
public void norm_setmonth() {
        String rule = "((10)|(11)|(12)|([1-9]))(?=月)";
        Pattern pattern = Pattern.compile(rule);
        Matcher match = pattern.matcher(Time_Expression);
        if (match.find()) {
            _tp.tunit[1] = Integer.parseInt(match.group());
        }
    }
805936
@UiHandler("m_atNumber")
    void onWeekOfMonthChange(ValueChangeEvent<String> event) {

        if (handleChange()) {
            m_controller.setWeekOfMonth(event.getValue());
        }
    }
891162
public String getWeekdayOfMonth(int number, int weekday, int month, int year) {
		return getWeekdayRelativeTo(String.format("%04d-%02d-01", year, month), weekday, number, true);
	}
975153
private void checkExactlyTheWeeksCheckBoxes(Collection<WeekOfMonth> weeksToCheck) {

        for (CmsCheckBox cb : m_checkboxes) {
            cb.setChecked(weeksToCheck.contains(WeekOfMonth.valueOf(cb.getInternalValue())));
        }
    }
646696
void setDayOfMonth(String day) {

        final int i = CmsSerialDateUtil.toIntWithDefault(day, -1);
        if (m_model.getDayOfMonth() != i) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    m_model.setDayOfMonth(i);
                    onValueChange();
                }
            });
        }
    }
226393
func (s *DescribeMaintenanceStartTimeOutput) SetDayOfMonth(v int64) *DescribeMaintenanceStartTimeOutput {
	s.DayOfMonth = &v
	return s
}
910123
func (s *DescribeScheduledAuditOutput) SetDayOfMonth(v string) *DescribeScheduledAuditOutput {
	s.DayOfMonth = &v
	return s
}
1206378
public void setPatternScheme(final boolean isWeekDayBased) {

        if (isWeekDayBased ^ (null != m_model.getWeekDay())) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    if (isWeekDayBased) {
                        m_model.setWeekDay(getPatternDefaultValues().getWeekDay());
                        m_model.setWeekOfMonth(getPatternDefaultValues().getWeekOfMonth());
                    } else {
                        m_model.setWeekDay(null);
                        m_model.setWeekOfMonth(null);
                    }
                    m_model.setMonth(getPatternDefaultValues().getMonth());
                    m_model.setDayOfMonth(getPatternDefaultValues().getDayOfMonth());
                    m_model.setInterval(getPatternDefaultValues().getInterval());
                    onValueChange();
                }
            });
        }
    }
1049227
private function setMonth($month) {
        
        //preventing duplication process
        if ($month == $this->month) {
            return;
        }
        $yearToSet  = $this->year;
        $monthToSet = $month;
        
        if ($monthToSet < 1) {
            $monthToSet = abs($monthToSet);
            $yearToSet--;
            
            $yearToSet  -= floor($monthToSet / 12);
            $monthToSet = 12 - ($monthToSet % 12);
            
        } elseif ($monthToSet > 12) {
            $yearToSet  += floor($monthToSet / 12);
            $monthToSet = ($month % 12);
            if ($monthToSet == 0) {
                $monthToSet = 12;
                $yearToSet--;
            }
        }
        
        $this->month = (int) $monthToSet;
        $this->setYear($yearToSet);
    }
1279455
public function dontSeeWeekInMonth($date, $week) {
        \PHPUnit_Framework_Assert::assertNotEquals($week, $this->_ParseDate($date)->weekOfMonth);
    }