NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan.FromHours

Creates a TimeSpan that represents the number of hours specified by a value specified to the nearest millisecond.

[Visual Basic]
Public Shared Function FromHours( _
   ByVal value As Double _
) As TimeSpan
[C#]
public static TimeSpan FromHours(
   double value
);
[C++]
public: static TimeSpan FromHours(
   double value
);
[JScript]
public static function FromHours(
   value : double
) : TimeSpan;

Parameters

value
A floating-point number in units of hours.

Return Value

A TimeSpan that represents value to the nearest millisecond.

Remarks

The ticks value is computed by converting the value parameter from units of hours to units of milliseconds, rounding to the nearest integer, and then converting from milliseconds to ticks.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace | Double | Ticks | Milliseconds