Gets the next valid working time for a specified date and time based on the current schedule object considering a suite of preferred schedules that must be resolved.
Namespace:
DlhSoft.Windows.Data
Assembly:
DlhSoft.ProjectData.Core (in DlhSoft.ProjectData.Core.dll)
Syntax
C# |
---|
public DateTime GetNextWorkTime( DateTime dateTime, Schedule[] schedules, bool isIntervalEndAccepted ) |
Visual Basic (Declaration) |
---|
Public Function GetNextWorkTime ( _ dateTime As DateTime, _ schedules As Schedule(), _ isIntervalEndAccepted As Boolean _ ) As DateTime |
Parameters
- dateTime
- Type: System..::.DateTime
Date and time to get the next valid working time for.
- schedules
- Type: array<
DlhSoft.Windows.Data..::.Schedule
>[]()[]
The preferred work schedules to resolve.
- isIntervalEndAccepted
- Type: System..::.Boolean
Indicates whether or not to accept an interval end as a valid time to be returned.