Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Determines whether the ADateTime time is nonworking time.

#Declaration

Delphi
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