GetPrevShiftStartTime(String,String,Nullable<DateTime>,DateTime) Method
- Last UpdatedNov 06, 2025
- 2 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 a site name and entity name to specify the entity.
'Declaration
Public Overloads Shared Sub GetPrevShiftStartTime( _
ByVal entName As String, _
ByVal siteName As String, _
ByVal shiftStartTime As Nullable(Of Date), _
ByRef prevShiftStartTime As Date _
)
'Usage
Dim entName As String
Dim siteName As String
Dim shiftStartTime As Nullable(Of Date)
Dim prevShiftStartTime As Date
UtilExec.GetPrevShiftStartTime(entName, siteName, shiftStartTime, prevShiftStartTime)
public static void GetPrevShiftStartTime(
string entName,
string siteName,
Nullable<DateTime> shiftStartTime,
out DateTime prevShiftStartTime
)
Parameters
- entName
- Required. Holds the name of the entity whose final reason codes are being retrieved.
- siteName
- Required. Holds the site name 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 is returned. 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 supplied entity is returned. If no rows are found for the specified parameters, an empty DataSet is returned