Duration.FromHours 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: 25.1.421.0 (25.1.421.0)
Syntaxpublic static Duration FromHours(
double hours,
TimeStandard standard
)
Public Shared Function FromHours (
hours As Double,
standard As TimeStandard
) As Duration
public:
static Duration FromHours(
double hours,
TimeStandard^ standard
)
static member FromHours :
hours : float *
standard : TimeStandard -> Duration
Parameters
- hours
- Type: System.Double
The number of hours to be represented by the returned Duration. - standard
- Type: AGI.Foundation.Time.TimeStandard
The time standard of the new Duration.
Return Value
Type:
DurationA
Duration representing the specified number of hours.
Exceptions
See Also