DateTimeRange Members
In This Article
#Constructors
Name | Description |
---|---|
Date |
Initializes a new Date |
Date |
Initializes a new Date |
#Properties
Name | Description |
---|---|
Duration | Returns the duration of the range. |
Empty static | Returns an empty date-time range. |
End | Returns the end date-time value of the range. |
Is |
Returns whether the range’s start and end values equal to Date |
Is |
Returns whether the end value is larger than or equal to the start value. |
Start | Returns the end date-time value of the range. |
Today static | Returns an date-time range that specifies today. |
#Methods
Name | Description |
---|---|
Contains |
Checks whether the current range contains the specified date-time range. |
Contains |
Checks whether the range contains the specified date-time value. |
Equals |
Determines whether the current range is equal to the specified range. |
Equals |
Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals |
Determines whether the range is equal to the specified object. |
Get |
Serves as the default hash function. |
Get |
Gets the Type of the current instance. Inherited from Object. |
Intersect |
Computes the intersection of the specified ranges. |
Intersect |
Computes the intersection of the current range with the specified range. |
Reference |
Determines whether the specified Object instances are the same instance. Inherited from Object. |
To |
Returns a string that represents the range. |
To |
Returns a string that represents the range and formatted using the specified culture-specific formatting information. |
To |
Returns a string that represents the range and formatted using the specified format string and culture-specific formatting information. |
Try |
Tries to parse the specified string and convert it into the date-time range. |
Union |
Computes the union of the specified ranges. |
Union |
Computes the union of the current range and the specified range. |
#Operators
Name | Description |
---|---|
Equality |
Determines whether two specified ranges have the same value. |
Inequality |
Determines whether two specified ranges have different values. |
See Also