NDepend.API Documentation
TotalMonths Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class : TotalMonths Method
The duration to convert in number of years.
Gets duration.TotalYears multiplied by 12 months.
Syntax
[Extension()]
public static double TotalMonths( 
   TimeSpan duration
)

Parameters

duration
The duration to convert in number of years.
Requirements

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

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members