Click or drag to resize

Duration.FromSeconds Method (Double, TimeStandard)

Returns a Duration that represents the specified number of seconds using the specified time standard.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public static Duration FromSeconds(
	double seconds,
	TimeStandard standard
)

Parameters

seconds
Type: System.Double
The number of seconds to be represented by the returned Duration.
standard
Type: AGI.Foundation.Time.TimeStandard
The time standard of the new Duration.

Return Value

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