| DateTimeOperationsAddDays Method |
Adds the specified number of days to the value of this instance.
Namespace:
TomsToolbox.Essentials
Assembly:
TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax public static TimeSpan AddDays(
this TimeSpan timeSpan,
double value
)
<ExtensionAttribute>
Public Shared Function AddDays (
timeSpan As TimeSpan,
value As Double
) As TimeSpan
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 See Also