The Time type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Time(Int64) |
Constructor.
|
|
Time(Int32, Int32, Int32) |
Constructor.
|
|
Time(Int32, Int32, Int32, Int32, Int32, Int32) |
Constructor.
|
|
Time(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Constructor.
|
Methods
Name | Description | |
---|---|---|
AddDays |
Returns a new DateTime that adds the specified number of days to the value of this instance.
|
|
AddHours |
Returns a new DateTime that adds the specified number of hours to the value of this instance.
|
|
AddMinutes |
Returns a new DateTime that adds the specified number of minutes to the value of this instance.
|
|
AddSeconds |
Returns a new DateTime that adds the specified number of seconds to the value of this instance.
|
|
Compare |
Compares this Time object to another to determine their relative ordering.
|
|
Equals(Object) |
Indicates whether this instance and a specified object are equal. (Overrides ValueType..::..Equals(Object).) |
|
Equals(Time) |
Tests if this Time is considered equal to another.
|
|
GetHashCode |
Returns the hash code for this instance. (Overrides ValueType..::..GetHashCode()()()().) |
|
ToString()()()() |
Returns a String that represents this instance.
(Overrides ValueType..::..ToString()()()().) |
|
ToString(String) |
Describes the instance as a string.
|
Operators
Name | Description | |
---|---|---|
Equality(DateTime, Time) |
Equality operator.
|
|
Equality(Time, DateTime) |
Equality operator.
|
|
Equality(Time, Time) |
Equality operator.
|
|
GreaterThan |
Greater-than comparison operator.
|
|
GreaterThanOrEqual |
Greater-than-or-equal comparison operator.
|
|
Implicit Widening Implicit Implicit Implicit (DateTime to Time) |
Time casting operator.
|
|
Implicit Widening Implicit Implicit Implicit (Time to DateTime) |
DateTime casting operator.
|
|
Inequality(DateTime, Time) |
Inequality operator.
|
|
Inequality(Time, DateTime) |
Inequality operator.
|
|
Inequality(Time, Time) |
Inequality operator.
|
|
LessThan |
Less-than comparison operator.
|
|
LessThanOrEqual |
Less-than-or-equal comparison operator.
|
Properties
Name | Description | |
---|---|---|
Date |
Gets the date of this instance.
|
|
Day |
Gets the day of the month represented by this instance.
|
|
DayOfWeek |
Gets the day of the week represented by this instance.
|
|
DayOfYear |
Gets the day of the year represented by this instance.
|
|
Hour |
Gets the hour component of the date represented by this instance.
|
|
Millisecond |
Gets the milliseconds component of the date represented by this instance.
|
|
Minute |
Gets the minute component of the date represented by this instance.
|
|
Month |
Gets the month component of the date represented by this instance.
|
|
NetTime | ||
Scale |
Gets or sets the scale.
|
|
ScaleCollisionBehavior |
The behavior upon Timescale collision .
|
|
Second |
Gets the seconds component of the date represented by this instance.
|
|
Ticks |
The underlying number of Ticks.
|
|
Year |
Gets the year component of the date represented by this instance.
|