Method ToTimeOnly
ToTimeOnly(TimeSpan)
Converts a TimeSpan to a TimeOnly value.
public static TimeOnly ToTimeOnly(this TimeSpan timeSpan)
Parameters
timeSpanTimeSpanThe TimeSpan to convert.
Returns
- TimeOnly
A TimeOnly representing the same time of day as the TimeSpan.