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, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members