The TimeOfDay type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TimeOfDay | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| Add |
Adds the value of the specified TimeSpan to the value of this instance.
| |
| Compare |
Compares two instances of TimeOfDay and returns an indication of their relative values.
| |
| CompareTo | Overloaded. | |
| Equals | Overloaded. | |
| Finalize | (Inherited from Object.) | |
| FromDays |
Returns a TimeOfDay that represents a specified number of days, where the specification is accurate to the nearest millisecond.
| |
| FromHours |
Returns a TimeOfDay that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
| |
| FromMilliseconds |
Returns a TimeOfDay that represents a specified number of milliseconds.
| |
| FromMinutes |
Returns a TimeOfDay that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
| |
| FromSeconds |
Returns a TimeOfDay that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
| |
| FromTicks |
Returns a TimeOfDay that represents a specified time, where the specification is in units of ticks.
| |
| GetHashCode |
Returns the hash code for this instance.
(Overrides ValueType..::.GetHashCode()()().) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Negate |
Returns the negated TimeSpan of this instance.
| |
| Parse |
Converts the specified string representation of a time of day to its TimeOfDay equivalent.
| |
| Subtract |
Subtracts the specified TimeSpan from this instance.
| |
| ToString |
Converts the value of the current TimeOfDay object to its equivalent string representation.
(Overrides ValueType..::.ToString()()().) | |
| ToTimeSpan |
Returns a time span value based on the current time of day value.
| |
| TryParse |
Converts the specified string representation of a time of day to its TimeOfDay equivalent.
|
Operators
| Name | Description | |
|---|---|---|
| Addition |
Adds a specified time interval to a specified time of day, yielding a new time span.
| |
| Equality |
Determines whether a specified instance of TimeOfDay is equal to a specified TimeSpan.
| |
| GreaterThan |
Determines whether one specified TimeOfDay is greater than a specified TimeSpan.
| |
| GreaterThanOrEqual |
Determines whether one specified TimeOfDay is greater than or equal to a specified TimeSpan.
| |
| Implicit | Overloaded. | |
| Inequality |
Determines whether a specified instance of TimeOfDay is not equal to a specified TimeSpan.
| |
| LessThan |
Determines whether one specified TimeOfDay is less than a specified TimeSpan.
| |
| LessThanOrEqual |
Determines whether one specified TimeOfDay is less than or equal to a specified TimeSpan.
| |
| Subtraction |
Subtracts a specified time interval from a specified time of day, yielding a new time span.
| |
| UnaryNegation |
Returns the negated time span of the specified time of day.
| |
| UnaryPlus |
Returns the time span of the specified time of day.
|
Fields
| Name | Description | |
|---|---|---|
| MaxValue |
Represents the largest possible value of TimeOfDay. This field is read-only.
| |
| MinValue |
Represents the smallest possible value of TimeOfDay. This field is read-only.
|
Properties
| Name | Description | |
|---|---|---|
| Days |
Gets the days component of the time interval represented by the current TimeOfDay structure.
| |
| Hours |
Gets the hours component of the time interval represented by the current TimeOfDay structure.
| |
| Milliseconds |
Gets the milliseconds component of the time interval represented by the current TimeOfDay structure.
| |
| Minutes |
Gets the minutes component of the time interval represented by the current TimeOfDay structure.
| |
| Seconds |
Gets the seconds component of the time interval represented by the current TimeOfDay structure.
| |
| Ticks |
Gets the number of ticks that represent the value of the current TimeOfDay structure.
| |
| TotalDays |
Gets the value of the current TimeOfDay structure expressed in whole and fractional days.
| |
| TotalHours |
Gets the value of the current TimeOfDay structure expressed in whole and fractional hours.
| |
| TotalMilliseconds |
Gets the value of the current TimeOfDay structure expressed in whole and fractional milliseconds.
| |
| TotalMinutes |
Gets the value of the current TimeOfDay structure expressed in whole and fractional minutes.
| |
| TotalSeconds |
Gets the value of the current TimeOfDay structure expressed in whole and fractional seconds.
|