System.TDateTime.operator -

From RAD Studio API Documentation
Jump to: navigation, search

C++

TDateTime __fastcall operator -(const TDateTimeBase& rhs) const
TDateTime __fastcall operator -(const TDateTime& rhs) const
TDateTime __fastcall operator -(const double rhs) const {return Val-rhs;}
TDateTime __fastcall operator -(const int rhs) const {return Val-rhs;}

Properties

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

Description

Subtracts a specified value from the TDateTime object.

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