Gets the previous 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 GetPreviousWorkTime( DateTime dateTime, Schedule[] schedules, bool isIntervalEndAccepted ) |
Visual Basic (Declaration) |
---|
Public Function GetPreviousWorkTime ( _ dateTime As DateTime, _ schedules As Schedule(), _ isIntervalEndAccepted As Boolean _ ) As DateTime |
Parameters
- dateTime
- Type: System..::.DateTime
Date and time to get the previous 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.