Humanizer.ITimeOnlyToClockNotationConverter
ITimeOnlyToClockNotationConverter Interface
Converts times into the localized text used by ToClockNotation.
public interface ITimeOnlyToClockNotationConverter
Methods
ITimeOnlyToClockNotationConverter.Convert(TimeOnly, ClockNotationRounding) Method
Converts the given time to clock notation.
string Convert(System.TimeOnly time, Humanizer.ClockNotationRounding roundToNearestFive);
Parameters
time System.TimeOnly
The time to format.
roundToNearestFive ClockNotationRounding
The rounding mode to apply before formatting the time.
Returns
System.String
The localized clock-notation string.