Class TimeOnlyExtensions
Extension methods for System.TimeOnly.
Since 3.1.x
Availability net6.0
Inheritance
Object
TimeOnlyExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class TimeOnlyExtensions
Methods
ToLocalTime(TimeOnly)
Converts a System.TimeOnly to the equivalent LocalTime.
Since 3.1.x
Availability net6.0
Declaration
public static LocalTime ToLocalTime(this TimeOnly time)
Parameters
Type | Name | Description |
---|---|---|
TimeOnly | time | The time of day to convert. |
Returns
Type | Description |
---|---|
LocalTime | The LocalTime equivalent. |