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
)
Visual Basic (Declaration)
Public Function GetPreviousWorkTime ( _
	dateTime As DateTime, _
	schedules As Schedule() _
) 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.

Return Value

The previous valid working time based for the specified date and time based on the current schedule object considering the suite of preferred schedules that must be resolved.

See Also