Click or drag to resize

Duration Constructor (Int32, Int32, Int32, Double, TimeStandard)

Initializes a new instance of Duration from a specified number of days, hours, minutes, and seconds. It also specifies that the time is measured 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 Duration(
	int days,
	int hours,
	int minutes,
	double seconds,
	TimeStandard standard
)

Parameters

days
Type: SystemInt32
The number of days in the new Duration.
hours
Type: SystemInt32
The number of hours in the new Duration.
minutes
Type: SystemInt32
The number of minutes in the new Duration.
seconds
Type: SystemDouble
The number of seconds in the new Duration.
standard
Type: AGI.Foundation.TimeTimeStandard
The time standard in which the time is measured.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if the inputs represent a value too large to be stored in a Duration.
See Also