Declaration¶
Source position: fpexprpars.pp line 425
type
TFloatToDateTimeNode = class(TFPConvertNode)
public
procedure Check;
function NodeType : TResultType;
procedure GetNodeValue;
end;
Description¶
The TFloatToDateTimeNode conversion node class handles the conversion of floating-point values to date/time values in expressions. It supports the standard Pascal datetime representation where the integer part represents days and the fractional part represents time.
The class enables precise datetime calculations by allowing floating-point values to represent both date and time components in a single numeric value. This is particularly useful for calculations involving time intervals and fractional days.
This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Check | public | Validate the float to datetime conversion |
| GetNodeValue | public | Convert float value to datetime |
| NodeType | public | Get the result type for float to datetime conversion |
See also¶
| Name | Description |
|---|---|
| TFPExprNode | Class for representing nodes in expression trees |