Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFloatToDateTimeNode

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Internally used class for converting float to datetime

Declaration

Source position: fpexprpars.pp line 425

type TFloatToDateTimeNode = class(TFPConvertNode)

public

  procedure Check; override;

  

Validate the float to datetime conversion

  function NodeType; override;

  

Get the result type for float to datetime conversion

  procedure GetNodeValue(); override;

  

Convert float value to datetime

end;

Inheritance

TFloatToDateTimeNode

  

Internally used class for converting float to datetime

|

TFPConvertNode

  

Internally used class for type conversion operations

|

TFPUnaryOperator

  

Internally used class for unary operations with single operand

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

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.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025