Click or drag to resize

DurationFromDays Method (Double)

Returns a Duration that represents the specified number of days.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.1.408.0 (21.1.408.0)
Syntax
public static Duration FromDays(
	double days
)

Parameters

days
Type: SystemDouble
The number of days to be represented by the returned Duration.

Return Value

Type: Duration
A Duration representing 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