Click or drag to resize

Duration.AddDays Method

Adds a specified number of days to this Duration and returns the new Duration.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public Duration AddDays(
	double days
)

Parameters

days
Type: System.Double
The number of days to add.

Return Value

Type: Duration
A new Duration which is the sum of the original Duration and the specified number of days.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if the result represents a value too large to be stored in a Duration.
See Also