Click or drag to resize

TimeOfDay Structure

Represents the time offset since the beginning of the day.

Namespace:  Neon.Time
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.1.0
Syntax
public struct TimeOfDay

The TimeOfDay type exposes the following members.

Constructors
  NameDescription
Public methodTimeOfDay(DateTime)
Constructs a time of day offset by stripping the date portion from the parameter passed.
Public methodTimeOfDay(String)
Constructs a time of day offset by parsing a string of the form HH:MM or HH:MM:SS.
Public methodTimeOfDay(TimeSpan)
Constructs a time of day offset from a TimeSpan.
Public methodTimeOfDay(Int32, Int32)
Constructs a time of day offset from hours and minutes.
Public methodTimeOfDay(Int32, Int32, Int32)
Constructs a time of day offset from hours, minutes, and seconds.
Top
Properties
  NameDescription
Public propertyHour
Returns the hours part of the time offset.
Public propertyMinute
Returns the minutes part of the time offset.
Public propertySecond
Returns the seconds part of the time offset.
Public propertyTimeSpan
Returns the offset as a TimeSpan.
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Renders the time of day value as a string formatted as HH:MM:SS.
(Overrides ValueTypeToString.)
Public methodStatic memberTryParse
Attempts to parse a string of the form HH:MM or HH:MM:SS into a time of day offset.
Top
Thread Safety
Instance members of this type are safe for multi-threaded operations.
See Also