NDepend.API Documentation
TotalYears Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class : TotalYears Method
The duration to convert in number of years.
Gets duration.System.TimeSpan.TotalDays divided by 365 days.
Syntax
[Extension()]
public static double TotalYears( 
   TimeSpan duration
)

Parameters

duration
The duration to convert in number of years.
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