Method ToTimeSpan
- Namespace
- YndigoBlue.Velocity.Utils
- Assembly
- YndigoBlue.Velocity.dll
ToTimeSpan(TimeOnly)
Converts a TimeOnly value to a TimeSpan.
public static TimeSpan ToTimeSpan(this TimeOnly timeOnly)
Parameters
timeOnlyTimeOnlyThe TimeOnly value to convert.
Returns
- TimeSpan
A TimeSpan with the same duration as the time of day represented by the TimeOnly.