System.TDateTime.operator =

From RAD Studio API Documentation
Jump to: navigation, search

C++

TDateTime& operator =(const TDateTimeBase& rhs)
TDateTime& operator =(const TDateTime& rhs)
TDateTime& operator =(const double rhs)
TDateTime& operator =(const int rhs)

Properties

Type Visibility Source Unit Parent
function public systdate.h System TDateTime


Description

Assigns the value of the TDateTime object.

The assignment operator = assigns the value of the rhs operand to the TDateTime object. The assignment operator = can take:

  • A double or integer value, which is assigned to the TDateTime object such that the integral part of rhs is the number of days that have passed since 12/30/1899 and the fractional part is the time of day, represented as a fraction of 24 hours.
  • A TDateTimeBase or TDateTime object, whose value is assigned to the TDateTime object. (Note that TDateTimeBase is the base class for the TDateTime class. It has a single member, a public Val field that represents the value of the object.)

See Also