Share via


TimeSpan.operator + Method

Adds two specified TimeSpan objects (time periods), yielding a new TimeSpan object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static TimeSpan operator + (
         TimeSpan t1,
         TimeSpan t2
)

Parameters

  • t1
    A TimeSpan object that specifies a period of time.
  • t2
    A TimeSpan object that specifies a period of time.

Return Value

A new TimeSpan object that represents the sum of the two TimeSpan objects represented by the t1 and t2 parameters.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

TimeSpan Structure
TimeSpan Members
System Namespace