TimeSpan.Add Method

Adds a specified TimeSpan object (time period) to the current TimeSpan object, yielding a new TimeSpan object.

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

Syntax

public TimeSpan Add (
         TimeSpan ts
)

Parameters

  • ts
    A TimeSpan object to be added to the current TimeSpan object.

Return Value

A new TimeSpan object that results from the addition of the ts parameter to the current TimeSpan object.

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