The Time type exposes the following members.

Constructors

  Name Description
Public method Time(Int64)
Constructor.
Public method Time(Int32, Int32, Int32)
Constructor.
Public method Time(Int32, Int32, Int32, Int32, Int32, Int32)
Constructor.
Public method Time(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Constructor.

Methods

  Name Description
Public method AddDays
Returns a new DateTime that adds the specified number of days to the value of this instance.
Public method AddHours
Returns a new DateTime that adds the specified number of hours to the value of this instance.
Public method AddMinutes
Returns a new DateTime that adds the specified number of minutes to the value of this instance.
Public method AddSeconds
Returns a new DateTime that adds the specified number of seconds to the value of this instance.
Public method Compare
Compares this Time object to another to determine their relative ordering.
Public method Equals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType..::..Equals(Object).)
Public method Equals(Time)
Tests if this Time is considered equal to another.
Public method GetHashCode
Returns the hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public method ToString()()()()
Returns a String that represents this instance.
(Overrides ValueType..::..ToString()()()().)
Public method ToString(String)
Describes the instance as a string.

Operators

  Name Description
Public operator Static member Equality(DateTime, Time)
Equality operator.
Public operator Static member Equality(Time, DateTime)
Equality operator.
Public operator Static member Equality(Time, Time)
Equality operator.
Public operator Static member GreaterThan
Greater-than comparison operator.
Public operator Static member GreaterThanOrEqual
Greater-than-or-equal comparison operator.
Public operator Static member Implicit Widening Implicit Implicit Implicit (DateTime to Time)
Time casting operator.
Public operator Static member Implicit Widening Implicit Implicit Implicit (Time to DateTime)
DateTime casting operator.
Public operator Static member Inequality(DateTime, Time)
Inequality operator.
Public operator Static member Inequality(Time, DateTime)
Inequality operator.
Public operator Static member Inequality(Time, Time)
Inequality operator.
Public operator Static member LessThan
Less-than comparison operator.
Public operator Static member LessThanOrEqual
Less-than-or-equal comparison operator.

Properties

  Name Description
Public property Date
Gets the date of this instance.
Public property Day
Gets the day of the month represented by this instance.
Public property DayOfWeek
Gets the day of the week represented by this instance.
Public property DayOfYear
Gets the day of the year represented by this instance.
Public property Hour
Gets the hour component of the date represented by this instance.
Public property Millisecond
Gets the milliseconds component of the date represented by this instance.
Public property Minute
Gets the minute component of the date represented by this instance.
Public property Month
Gets the month component of the date represented by this instance.
Public property NetTime
Converts a Time value to a DateTime value.
Public property Static member Scale
Gets or sets the scale.
Public property Static member ScaleCollisionBehavior
The behavior upon Timescale collision .
Public property Second
Gets the seconds component of the date represented by this instance.
Public property Ticks
The underlying number of Ticks.
Public property Year
Gets the year component of the date represented by this instance.

See Also