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.Data
Assembly:  DlhSoft.ProjectData.Core (in DlhSoft.ProjectData.Core.dll)

Syntax

C#
public TimeSpan GetEffort(
	DateTime start,
	DateTime finish,
	Schedule schedule
)
Visual Basic (Declaration)
Public 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.

See Also