Gets the total duration of the working time intervals between specified start and finish date and times (i.e. effort time for a task that starts and finishes on specified date and time, considering a single full time resource assignment), determined based on the working week and working day definitions, excluding the defined nonworking time intervals.

Namespace:  DlhSoft.Windows.Controls
Assembly:  DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)

Syntax

C#
TimeSpan GetEffort(
	DateTime start,
	DateTime finish,
	Schedule schedule
)
Visual Basic (Declaration)
Function GetEffort ( _
	start As DateTime, _
	finish As DateTime, _
	schedule As Schedule _
) As TimeSpan

Parameters

start
Type: System..::.DateTime
The start date and time of the working time intervals.
finish
Type: System..::.DateTime
The finish date and time of the working time intervals.
schedule
Type: DlhSoft.Windows.Data..::.Schedule
Optionally, a schedule object to use instead of the default working and nonworking time intervals.

Return Value

The total duration of the working time intervals between specified start and finish date and times.

See Also