CalculateWorkTime
Command, Introduced in version 2.28
POST https://localhost:8001/sv/001.1/api/v1/TimeRecording/RecordingCalculations/CalculateWorkTime
Calculates what the worktime would be between start and end taking the employee's schedule into account.
Returns WorkTimeResponse
Properties
| Name | Type | Summary | Introduced in |
|---|---|---|---|
| EmployeeId | Int64 | The business key identifier of the employee to make the calculation for. References Persons
|
|
| Start | DateTimeOffset | The start of the work interval.
|
|
| End | DateTimeOffset | The end of the work interval.
|
|
| IncludeFlexZones | Boolean | Include flex zones in calculation. Only used when flex is allowed on employee.
|
Introduced in version 24.2 |
Example
{
"EmployeeId": 0,
"Start": "0001-01-01T00:00:00+00:00",
"End": "0001-01-01T00:00:00+00:00",
"IncludeFlexZones": false
}