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

Parameters

duration
The estimated duration to fix one or several issues
Remarks
For example this method can return:
"1 234d 2h"
"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