RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTime::= Operator (TDateTime&)

Assigns the value of the System::TDateTime::TDateTime object.

Pascal
operator =(const rhs: TDateTimeBase&);
operator =(const rhs: TDateTime&);
operator =(const rhs: double);
operator =(const rhs: Integer);
C++
__fastcall TDateTime& operator =(const TDateTimeBase& rhs);
__fastcall TDateTime& operator =(const TDateTime& rhs);
__fastcall TDateTime& operator =(const double rhs);
__fastcall TDateTime& operator =(const int rhs);

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

a double or integer value, which is assigned to the System::TDateTime::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 System::TDateTime::TDateTimeBase or System::TDateTime::TDateTime object, whose value is assigned to the System::TDateTime::TDateTime object. (Note that System::TDateTime::TDateTimeBase is the base class for the System::TDateTime::TDateTime class. It has a single member, a public Val field that represents the value of the object). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!