Click or drag to resize

DurationAddSeconds Method

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

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.1.408.0 (21.1.408.0)
Syntax
public Duration AddSeconds(
	double seconds
)

Parameters

seconds
Type: SystemDouble
The number of seconds to add.

Return Value

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