Mono Class Library: System.DateTime Overview | Members

System.DateTime Addition Operator

Adds a specified TimeSpan value to a specified DateTime value. [Edit]

public static DateTime operator+ (DateTime d, TimeSpan t)

See Also

DateTime.Add(TimeSpan)

Parameters

d
A DateTime value. [Edit]
t
A TimeSpan value. [Edit]

Returns

A DateTime instance that is the sum of the values of d and t . [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe resulting date and time is less than DateTime.MinValue or greater than DateTime.MaxValue. [Edit]

Remarks

The returned value is equivalent to DateTime( d.Ticks + t.Ticks ). [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0