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

procedure GetDurationBetweenDateTimes(AFirstDateTime: TDateTime; ASecondDateTime: TDateTime; var APlannedDuration: TTMSFNCGanttDuration; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AUpdate: Boolean = 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.