Date |
public struct TimeSpanEx : IEquatable<DateTimeTickSpacingTimeSpanEx>, IEquatable<Object>
The DateTimeTickSpacingTimeSpanEx type exposes the following members.
| Name | Description | |
|---|---|---|
| Months | Gets the number of months represented by this value. | |
| Span | Gets the represented TimeSpan. | |
| Years | Gets the number of years represented by this value. |
| Name | Description | |
|---|---|---|
| Add | Adds the specified span to the specified date-time value. | |
| Divide | Divides one time span expression by another. | |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| Equals(DateTimeTickSpacingTimeSpanEx) | Determines whether this instance is equal to the specified value. | |
| FromDays | Creates an instance representing a number of whole days. | |
| FromHours | Creates an instance representing a number of whole hours. | |
| FromMicroSeconds | Creates an instance representing a number of whole microseconds. | |
| FromMilliSeconds | Creates an instance representing a number of whole milliseconds. | |
| FromMinutes | Creates an instance representing a number of whole minutes. | |
| FromMonths | Creates an instance representing a number of whole months. | |
| FromSeconds | Creates an instance representing a number of whole seconds. | |
| FromTicks | Creates an instance from ticks. | |
| FromTimeSpan | Creates an instance from a TimeSpan. | |
| FromYears | Creates an instance representing a number of whole years. | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| RoundDown | Rounds the specified date-time down to the previous matching boundary. | |
| RoundUp | Rounds the specified date-time up to the next matching boundary. | |
| Subtract | Subtracts the specified span from the specified date-time value. | |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
| Name | Description | |
|---|---|---|
| Equality(DateTimeTickSpacingTimeSpanEx, DateTimeTickSpacingTimeSpanEx) | Determines whether two values are equal. | |
| Inequality(DateTimeTickSpacingTimeSpanEx, DateTimeTickSpacingTimeSpanEx) | Determines whether two values are not equal. |
| Name | Description | |
|---|---|---|
| _span | Stores the span value or the encoded number of months or years. | |
| _unit | Stores the unit used by this extended time span. |