Table of Contents

TTMSFNCCustomPlanner.DateTimeToValue Method

Converts a date and time to the planner's internal numeric value.

API unit family: TMSFNCPlanner Declaring type: TTMSFNCCustomPlanner

Syntax

function DateTimeToValue(ADateTime: TDateTime; AEndDateTime: Boolean = False; ACheckBounds: Boolean = True): Double; virtual;

Parameters

Name Description
ADateTime Date and time to convert.
AEndDateTime When True, converts the value as an end boundary.
ACheckBounds When True, clamps or validates the value against the visible planner range.

Returns

The internal numeric value for the date and time.