Skip to main content
Version: 4.0 (next)

Humanizer.IFractionalTimeSpanFormatter

IFractionalTimeSpanFormatter Interface

Extends a formatter with support for fractional-second duration values.

public interface IFractionalTimeSpanFormatter

Methods

IFractionalTimeSpanFormatter.TimeSpanHumanizeWithFractionalSeconds(decimal, bool) Method

Returns the localized representation of a seconds value.

string TimeSpanHumanizeWithFractionalSeconds(decimal seconds, bool toSymbols);

Parameters

seconds System.Decimal

The non-negative seconds value to format.

toSymbols System.Boolean

Whether the seconds unit is rendered as a symbol.

Returns

System.String
The localized seconds value.