Click or drag to resize

DateTimeOperationsAddDays Method

Adds the specified number of hours to the value of this instance.

Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version: 1.0.75.0
Syntax
public static TimeSpan AddDays(
	this TimeSpan timeSpan,
	double value
)

Parameters

timeSpan
Type: SystemTimeSpan
The time span.
value
Type: SystemDouble
A number of whole and fractional days. The value parameter can be negative or positive.

Return Value

Type: TimeSpan
A TimeSpan that represents the value of this instance plus the value of value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TimeSpan. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
OverflowExceptionThe resulting TimeSpan is less than MinValue or greater than MaxValue.
See Also