DateTimeRange Members
In This Article
[start, end).
mathematical formula.
#Constructors
Name | Description |
---|---|
Date |
Initializes a new instance of the Date |
Date |
Initializes a new instance of the Date |
Date |
Initializes a new instance of the Date |
#Properties
Name | Description |
---|---|
Duration |
Gets the duration of the Date |
Empty static | Gets an empty datetime range. |
End | Gets the end date and time of the datetime range. |
Is |
Gets whether the current datetime range is empty. |
Is |
Gets whether the current datetime range is valid. |
Start | Gets the start date and time of the datetime range. |
Today static | Gets the current calendar day. |
#Methods
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. |
#Operators
Name | Description |
---|---|
Equality |
Determines whether two specified ranges have the same value. |
Inequality |
Determines whether two specified ranges have different values. |
See Also