Click or drag to resize

DurationFromHours Method (Double, TimeStandard)

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

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static Duration FromHours(
	double hours,
	TimeStandard standard
)

Parameters

hours
Type: SystemDouble
The number of hours to be represented by the returned Duration.
standard
Type: AGI.Foundation.TimeTimeStandard
The time standard of the new Duration.

Return Value

Type: Duration
A Duration representing the specified number of hours.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if the result represents a value too large to be stored in a Duration.
See Also