Iterates the working time intervals between specified start and finish date and times, determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Namespace:
DlhSoft.Windows.ControlsAssembly: DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)
Syntax
C# |
---|
public IEnumerable<TimeInterval> GetWorkingTimeIntervals( DateTime start, DateTime finish, Schedule schedule ) |
Visual Basic (Declaration) |
---|
Public Function GetWorkingTimeIntervals ( _ start As DateTime, _ finish As DateTime, _ schedule As Schedule _ ) As IEnumerable(Of TimeInterval) |
Parameters
- start
- Type: System..::.DateTime
The date and time to iterate from.
- finish
- Type: System..::.DateTime
The date and time to iterate to.
- schedule
- Type: DlhSoft.Windows.Data..::.Schedule
Optionally, a schedule object to use instead of the default working and nonworking time intervals.