Skip to main content
Table of Contents

TTMSFNCGanttWorkTime.GetActualStartDateTimeByEnd Method

Returns the adjusted start date/time by subtracting a duration from an end date/time.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttWorkTime

Syntax

FMX.TMSFNCGanttClasses.hppPascalC++
function GetActualStartDateTimeByEnd(ADateTime: TDateTime; ADuration: TTMSFNCGanttDuration; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays): TDateTime;
System::TDateTime __fastcall GetActualStartDateTimeByEnd(System::TDateTime ADateTime, TTMSFNCGanttDuration* ADuration, TTMSFNCGanttTaskWorkTimePolicy AWorkTimePolicy = (TTMSFNCGanttTaskWorkTimePolicy)(0x0));

Parameters

Name Description
ADateTime Requested end date/time.
ADuration Duration to subtract.
AWorkTimePolicy Policy that controls how working time and working days are applied.

Returns

The calculated start date/time.