Optionally extends a locale formatter with grammatical-case-aware duration phrases.
public interface IGrammaticalCaseTimeSpanFormatter : Humanizer.IFormatterDerived
↳ DefaultFormatter
Implements IFormatter
Returns the locale-authored unit-case phrase for a duration count.
string TimeSpanHumanize(Humanizer.TimeUnit timeUnit, int unit, Humanizer.GrammaticalCase grammaticalCase);timeUnit TimeUnit
The unit being described.
unit System.Int32
The number of units being described.
grammaticalCase GrammaticalCase
The grammatical case used to select the unit phrase.
System.String
A locale-authored phrase whose count may be explicit or encoded by the unit form.
System.ArgumentOutOfRangeException
timeUnit or grammaticalCase is outside its defined enum range.
System.NotSupportedException
The locale or duration unit does not have verified support for grammaticalCase.