NDepend.API Documentation
ToSeconds(Double) Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class > ToSeconds Method : ToSeconds(Double) Method
The number of seconds.
Gets a System.TimeSpan value, with total double number of seconds equals to double value nbSecondsDouble.
Syntax
[Extension()]
public static TimeSpan ToSeconds( 
   double nbSecondsDouble
)

Parameters

nbSecondsDouble
The number of seconds.
Exceptions
ExceptionDescription
This exception is thrown if the expected time span is greater than System.TimeSpan.System.TimeSpan.MaxValue or lower than System.TimeSpan.System.TimeSpan.MinValue.
Requirements

Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members
Overload List