GetPrevShiftStartTime(Int32,DBDateTime,DateTime) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetPrevShiftStartTime() method retrieves, for the specified entity, the event start time of the first utilization event that occurred on the shift that immediately preceding the specified shift start time.
This overload of the method uses an entity ID to specify the entity.
'Declaration
Public Overloads Shared Sub GetPrevShiftStartTime( _
ByVal entId As Integer, _
ByVal shiftStartTime As DBDateTime, _
ByRef prevShiftStartTime As Date _
)
'Usage
Dim entId As Integer
Dim shiftStartTime As DBDateTime
Dim prevShiftStartTime As Date
UtilExec.GetPrevShiftStartTime(entId, shiftStartTime, prevShiftStartTime)
public static void GetPrevShiftStartTime(
int entId,
DBDateTime shiftStartTime,
out DateTime prevShiftStartTime
)
Parameters
- entId
- Required. Holds the ID of the entity whose final reason codes are being retrieved.
- shiftStartTime
- Optional filter parameter. Holds a shift start time by which to filter the results.
- prevShiftStartTime
- [Output]A datetime variable must be supplied to this parameter to get a value back from this method.
For optional filter parameters that are not to be included as a filter, pass a null.
This method returns the event start time from the first utilization event that occurred on a shift that is immediately preceding the supplied shift start time. If the supplied shift start time is null, then this method retrieves the event start time from the first utilization event that occurred on the shift that is immediately preceding the current shift that is running on the specified entity. If no rows are found for the specified parameters, an empty DataSet is returned.