Skip to main content

TcxSchedulerDateTimeHelper.IsFreeTime(TDateTime,TDays,TDateTime,TDateTime) Method

Determines whether the ADateTime time is nonworking time.

Declaration

class function IsFreeTime(const ADateTime: TDateTime; AWorkDays: TDays; const AWorkStart: TDateTime; const AWorkFinish: TDateTime): Boolean;

Parameters

Name Type
ADateTime TDateTime
AWorkDays TDays
AWorkStart TDateTime
AWorkFinish TDateTime

Returns

Type
Boolean

Remarks

The IsFreeTime method returns True if the ADateTime time is nonworking time.

The ADateTime parameter specifies the time to be determined as nonworking time;

The AWorkDays parameter specifies the days that contain work hours;

The AWorkStart and AWorkFinish parameters specify the boundaries for work time.

See Also