NumberExtensionsSecondsToTicks Method |
Extension method converting seconds to (TimeSpan) ticks.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static long SecondsToTicks(
this double seconds
)
<ExtensionAttribute>
Public Shared Function SecondsToTicks (
seconds As Double
) As Long
public:
[ExtensionAttribute]
static long long SecondsToTicks(
double seconds
)
[<ExtensionAttribute>]
static member SecondsToTicks :
seconds : float -> int64
Parameters
- seconds
- Type: SystemDouble
Seconds.
Return Value
Type:
Int64
Returns seconds converted to ticks.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also