DateTimeRange Methods
A structure that specifies a time interval with the [start, end).
mathematical formula.
Name | Description |
---|---|
Contains |
Checks whether the range contains the specified date-time value. |
Contains |
Checks whether the current range contains the specified date-time range. |
Equals |
Defines whether the specified Date |
Equals |
Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals |
Defines whether the specified object is equal to the current Date |
Get |
Gets the hash code (a number) that corresponds to the value of the current Time |
Get |
Gets the Type of the current instance. Inherited from Object. |
Intersect |
Checks whether the date time range intersects with two specified ranges. |
Intersect |
Computes the intersection of the current range with the specified range. |
Intersects |
Computes the intersection of the specified ranges. |
Intersects |
Checks whether the time range intersects with the specified range. |
Reference |
Determines whether the specified Object instances are the same instance. Inherited from Object. |
To |
Returns the textual representation of the datetime range. |
To |
Returns a culture-specific string representation of the time range. |
To |
Returns a string that represents the range. The return string uses the specified format string to format the result in a culture-specific template. |
Try |
Tries to parse the specified string and convert it into the date-time range. |
Union |
Computes the union of the current range and the specified range. |
Union |
Computes the union of the specified ranges. |
See Also