Sign in Join
FPDoc Onlineexperiment

TFloatToDateTimeNode class

In unit fpExprPars

Internally used class for converting float to datetime

Declaration

pascal
TFloatToDateTimeNode = class(TFPConvertNode)

Inheritance

  1. TFloatToDateTimeNode
  2. TFPConvertNode
  3. TFPUnaryOperator
  4. TFPExprNode
  5. 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

Methods

CheckpublicValidate the float to datetime conversion
NodeTypepublicGet the result type for float to datetime conversion
GetNodeValuepublicConvert float value to datetime

Inherited

From TFPUnaryOperator (6)

Create Destroy HasAggregate InitAggregate Operand UpdateAggregate

From TFPExprNode (4)

AsString CheckNodeType IsAggregate NodeValue

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.