TTMSFNCCustomPlanner.DateTimeToPosition Method
Converts a date and time to a visible planner position.
API unit family: TMSFNCPlanner
Declaring type: TTMSFNCCustomPlanner
Syntax
function DateTimeToPosition(ADateTime: TDateTime; AEndDateTime: Boolean = False; ACheckBounds: Boolean = True): Integer; virtual;
Parameters
| Name | Description |
|---|---|
ADateTime |
Date and time to locate. |
AEndDateTime |
When True, resolves the value as an end boundary. |
ACheckBounds |
When True, validates the result against the visible planner range. |
Returns
The visible position index for the date and time.