NDepend.API Documentation
ToManYearString Method
NDepend.TechnicalDebt Namespace > IDebtFormatter Interface : ToManYearString Method
The estimated duration to fix one or several issues
Gets a string that represents duration as a number of man-years. The number of man-years is computed from this.DebtSettings.DebtSettings.NumberOfWorkHourPerDay and this.DebtSettings.DebtSettings.NumberOfWorkDayPerYear.
Syntax
string ToManYearString( 
   TimeSpan duration
)

Parameters

duration
The estimated duration to fix one or several issues
Remarks
For example this method can return:
"1y 2m 12d" hours are not shown if duration is at least a man-year
"2m 12d" hours are not shown if duration is at least a man-month
"12d 2h" if duration is less than a man-month
"2:02:43" if duration is less than a man-day
"2min 43s" if duration is less than an hour
If duration.System.DateTime.Ticks is higher than Debt.NDepend.TechnicalDebt.Debt.MAX_TICKS or lower than Debt.NDepend.TechnicalDebt.Debt.MIN_TICKS this method returns the string "overflow".
Requirements

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

See Also

Reference

IDebtFormatter Interface
IDebtFormatter Members