Skip to main content
Table of Contents

TTMSFNCGanttWorkTime.GetDurationBetweenDateTimes Method

Calculates the duration between two date/time values using the selected work-time policy.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttWorkTime

Syntax

FMX.TMSFNCGanttClasses.hppPascalC++
procedure GetDurationBetweenDateTimes(AFirstDateTime: TDateTime; ASecondDateTime: TDateTime; var APlannedDuration: TTMSFNCGanttDuration; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AUpdate: Boolean = True);
void __fastcall GetDurationBetweenDateTimes(System::TDateTime AFirstDateTime, System::TDateTime ASecondDateTime, TTMSFNCGanttDuration* &APlannedDuration, TTMSFNCGanttTaskWorkTimePolicy AWorkTimePolicy = (TTMSFNCGanttTaskWorkTimePolicy)(0x0), bool AUpdate = true);

Parameters

Name Description
AFirstDateTime First date/time.
ASecondDateTime Second date/time.
APlannedDuration Duration record that receives the calculated value.
AWorkTimePolicy Policy that controls how working time and working days are applied.
AUpdate When True, updates dependent duration values.