Humanizer.TimeOnlyToClockNotationExtensions
TimeOnlyToClockNotationExtensions Class
Humanizes TimeOnly into human readable sentence
public static class TimeOnlyToClockNotationExtensions
Inheritance System.Object → TimeOnlyToClockNotationExtensions
Methods
TimeOnlyToClockNotationExtensions.ToClockNotation(this TimeOnly, ClockNotationRounding) Method
Turns the provided time into clock notation
public static string ToClockNotation(this System.TimeOnly input, Humanizer.ClockNotationRounding roundToNearestFive=Humanizer.ClockNotationRounding.None);
Parameters
input System.TimeOnly
The time to be made into clock notation
roundToNearestFive ClockNotationRounding
Whether to round the minutes to the nearest five or not
Returns
System.String
The time in clock notation