System.TimeSpan.TTimeSpan.Subtract
Delphi
function Subtract(const TS: TTimeSpan): TTimeSpan; overload;
class function Subtract(const D1, D2: TDateTime): TTimeSpan; overload; static;
C++
TTimeSpan __fastcall Subtract(const TTimeSpan &TS)/* overload */;
static TTimeSpan __fastcall Subtract(const System::TDateTime D1, const System::TDateTime D2)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.TimeSpan.pas System.TimeSpan.hpp |
System.TimeSpan | TTimeSpan |
Description
Subtracts the time span given through the parameter from the current time span.
The Subtract method returns a time span obtained by subtracting the number of ticks in the time span provided by the TS parameter from the number of ticks in the current TTimeSpan value.