System.TimeSpan.TTimeSpan.operator Subtraction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class operator Subtract(const Left, Right: TTimeSpan): TTimeSpan;
class operator Subtract(const Left: TDateTime; Right: TTimeSpan): TDateTime;

Properties

Type Visibility Source Unit Parent
function public System.TimeSpan.pas System.TimeSpan TTimeSpan

Description

Overloaded - operator.

operator Subtraction returns an instance of TTimeSpan whose Days, Hours, Minutes, Seconds and Milliseconds properties represent the difference between the corresponding properties of the Left and Right parameters.

Note: If the Left or Right parameters are of type TDateTime, the return value is of type TDateTime.

Note: Do not call the Subtraction operator directly. It is an overload for the - operator.

See Also