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

Subtracts a specified value from 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) const;
__fastcall TDateTime operator -(const TDateTime& rhs) const;
__fastcall TDateTime operator -(const double rhs) const;
__fastcall TDateTime operator -(const int rhs) const;

Use the System::TDateTime::- to subtract the value specified by the rhs operand from the System::TDateTime::TDateTime object. The rhs operand represents the number of days (including fractional days) to subtract. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!