Skip to main content
A newer version of this page is available. .

DateTimeRange Methods

Time interval which provides extended operations such as Union and Intersect.
Name Description
Contains(DateTimeRange)
Contains(DateTime)
Equals(DateTimeRange)
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Defines whether the given object is equal to the current DateTimeRange instance.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current TimeInterval object.
GetType() Gets the Type of the current instance. Inherited from Object.
Intersect(DateTimeRange, DateTimeRange) static Returns a datetime range that is the intersection of the two given ranges.
Intersect(DateTimeRange) Returns a time interval which is the intersection of the current time range with the given datetime range.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns the textual representation of the datetime range.
ToString(IFormatProvider) Provides a culture-specific string representation of the time range.
ToString(String, IFormatProvider)
TryParse(String, CultureInfo, out DateTimeRange) static
Union(DateTimeRange, DateTimeRange) static Returns a datetime range which is composed of the two given time ranges.
Union(DateTimeRange) Returns a datetime range which is composed of the current time range and the given datetime range.
See Also