System.TimeSpan.TTimeSpan.operator Addition
Delphi
class function TryParse(const S: string; out Value: TTimeSpan): Boolean; static;
class operator Add(const Left, Right: TTimeSpan): TTimeSpan;
class operator Add(const Left, Right: TTimeSpan): TTimeSpan;
class operator Add(const Left: TTimeSpan; Right: TDateTime): TDateTime;
class operator Add(const Left, Right: TTimeSpan): TTimeSpan;
class operator Add(const Left: TTimeSpan; Right: TDateTime): TDateTime;
class operator Add(const Left: TDateTime; Right: TTimeSpan): TDateTime;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.TimeSpan.pas | System.TimeSpan | TTimeSpan |
Description
Overloaded + operator.
operator Addition returns an instance of TTimeSpan whose Days, Hours, Minutes, Seconds and Milliseconds properties are the sums of the corresponding properties of 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 Addition operator directly. It is an overload for the + operator.