Click or drag to resize

LocalTime Methods

The LocalTime type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(Object)
Compares the value of this instance to a specified object which is expected to be a LocalTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified LocalTime value.
Public methodCompareTo(LocalTime)
Compares the value of this instance to a specified LocalTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).)
Public methodEquals(LocalTime)
Returns a value indicating whether the value of this instance is equal to the value of the specified LocalTime instance.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodToString
Converts the value of the current LocalTime object to its equivalent string representation.
(Overrides ObjectToString.)
Public methodToTimeSpan
Converts this time value to a TimeSpan instance.
Top
See Also