Workweek
Last updated
Was this helpful?
Last updated
Was this helpful?
The Workweek class represents the information about what the work schedule for project management calculations. The constructors are not accessible from scripts.
Field
Type
Description
calendarId
integer
Read only. An internal value assigned to each calendar, unique in each document. The standard calendar is always has a value of 1.
workdays
integer
The days of the week that are work days, as a bit field (see Workday Type below).
events
Read only. The exceptions to the work schedule.
init( workdays )
Creates a new Workweek with the given
workdays
with no work schedule exceptions.
init( workweek )
Creates a new Workweek which is a deep copy of given Workweek instance.
checkWorkDay( day )
Returns
True
if the givenday
is a regular work day for this Workweek, where day is one of the Workday values below.
checkWorkDay( date )
Returns True if the given
date
(a instance) would be a work day for this Workweek with exceptions considered.
addExceptionForDate( date )
Adds an exception to the work schedule for given
date
.
removeExceptionForDate( date )
Removes an exception to the work schedule for given
date
.
Bit values for days of the week. DEFAULT_WORKDAYS
is the same as the masks for Monday through Friday, OR'd together.
list of