DateTimeRange Methods
The time range that provides access to extended operations, such as Union and IntersectWith.
Name | Description |
---|---|
Contains |
Checks whether the current time range contains the specified time range. |
Contains |
Checks whether the current time range contains the specified time. |
Equals |
Checks whether the current time range is equal to the specified time range. |
Equals |
Determines whether the specified object instances are considered equal.
Inherited from System. |
Equals |
Checks whether the specified object is equal to the current time range. |
Get |
Gets the hash code that corresponds to the current time range. |
Get |
Gets the Type of the current instance.
Inherited from System. |
Intersect |
Returns the time range that corresponds to the intersection of specified time ranges. |
Intersect |
Returns the time range that corresponds to the intersection of current and specified time ranges. |
Intersects |
Checks whether specified time ranges intersect. |
Intersects |
Checks whether the specified time range intersects with the current range. |
Reference |
Determines whether the specified Object instances are the same instance.
Inherited from System. |
To |
Returns the time range’s display text. |
To |
Returns a culture-specific display text string of the time range. |
To |
Returns the culture-specific display text string of the time range in the specified format. |
Try |
Tries to parse the specified string and convert it into the date-time range. |
Union |
Calculates the union of specified time ranges. |
Union |
Calculates the union of current and specified time ranges. |
See Also