Skip to content

TIntToDateTimeNode

Internally used class for converting integer to datetime

Declaration

Source position: fpexprpars.pp line 417

type

  TIntToDateTimeNode = class(TIntConvertNode)
  public
    function NodeType : TResultType;
    procedure GetNodeValue;
  end;

Description

The TIntToDateTimeNode conversion node class handles the conversion of integer values to date/time values in expressions. It extends the base conversion functionality to provide integer-to-datetime specific conversion logic.

The class interprets integer values as datetime representations, typically using the standard Pascal datetime encoding where integers represent days since a base date. This allows integration of numeric date calculations with datetime operations.

The conversion enables mathematical operations on dates by treating them as numeric values while maintaining proper datetime semantics and formatting in the final results.

Methods

Member Visibility Description
GetNodeValue public Internally used convert integer value to datetime
NodeType public Get the result type for integer to datetime conversion
See all Methods

See also

Name Description
TFPExprNode Class for representing nodes in expression trees