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

Parameters

duration
The estimated duration to fix one or several issues
Remarks
For example this method can return:
"1m 12d 2:02:43" if duration is at least a man-month
"12d 2:02:43" 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

There is a typo in the method name on 'Detailed' but we prefer to not set this method as obsolete just for a typo.
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