Noda Time
Show / Hide Table of Contents

Class TimeOnlyExtensions

Extension methods for TimeOnly.
Since 3.1.x
Availability net6.0, net8.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 TimeOnly to the equivalent LocalTime.
Since 3.1.x
Availability net6.0, net8.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.
In this article
Back to top Generated by DocFX