DateTimeRange Members
In This Article
#Constructors
Name | Description |
---|---|
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 current time range. |
Empty static | Gets an empty time range. |
End | Gets the end value of the time range. |
Is |
Gets whether the current time range is empty. |
Is |
Gets whether the current time range is valid. |
Start | Gets the start value of the time range. |
Today static | Gets the today time range. |
#Methods
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. |
#Operators
Name | Description |
---|---|
Equality |
Determines whether specified time ranges have the same values. |
Inequality |
Determines whether specified time ranges have different values. |
See Also