Skip to main content
Table of Contents

TTMSFNCGanttWorkTime.GetWorkTimeDifference Method

Calculates the working-time difference between two date/time values.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttWorkTime

Syntax

FMX.TMSFNCGanttClasses.hppPascalC++
function GetWorkTimeDifference(AFirstDateTime: TDateTime; ASecondDateTime: TDateTime = 0; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays): TDateTime;
System::TDateTime __fastcall GetWorkTimeDifference(System::TDateTime AFirstDateTime, System::TDateTime ASecondDateTime = 0.000000E+00, TTMSFNCGanttTaskWorkTimePolicy AWorkTimePolicy = (TTMSFNCGanttTaskWorkTimePolicy)(0x0));

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.