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.FromSeconds

Creates a TimeSpan that represents the number of seconds specified by a specified value.

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

Parameters

value
A floating-point number in units of seconds.

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 seconds 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