TTMSFNCPlanner.DateTimeToValue Method
Converts a date and time to the planner's internal numeric value.
API unit family: TMSFNCPlanner
Declaring type: TTMSFNCPlanner
Inherited from: 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.