setWorkingDayOfWeek method



Sets a specified day of the week to be a working day or a non-working day.

Syntax

Scheduler.setWorkingDayOfWeek(dayOfWeek, bWork)

Applies to

Scheduler object.

Parameters

dayOfWeek
int. The day of the week that this method sets to be a working day or non-working day. 1 represents Sunday, 2 represents Monday, 3 represents Tuesday, and so on.
bWork
boolean. true sets the day specified by dayOfWeek to be a working day; false sets it to be a non-working day.

Return value

none.

Usage

Use this method to designate any day of the week as a working day.

Note: JDK 1.1 includes a Calendar-derived class, GregorianCalendar, that defines 1<=dayOfWeek<=7. Other Calendar-derived classes may define different values for dayOfWeek; check the values defined by the Calendar-derived class that you are using.

See also

isDuringWorkingTime method
isWorkingDate method
isWorkingDayOfWeek method