TTMSFNCGanttWorkTime.GetWorkTimeDifference Method
Calculates the working-time difference between two date/time values.
API unit family: TMSFNCGanttClasses
Declaring type: TTMSFNCGanttWorkTime
Syntax
function GetWorkTimeDifference(AFirstDateTime: TDateTime; ASecondDateTime: TDateTime = 0; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays): TDateTime;
Parameters
| Name | Description |
|---|---|
AFirstDateTime |
First date/time. |
ASecondDateTime |
Second date/time. When omitted, the current date/time is used by the implementation. |
AWorkTimePolicy |
Policy that controls how working time and working days are applied. |
Returns
The working-time difference as a date/time duration value.