Skip to main content

DateTimeRange Methods

Time interval which provides extended operations such as Union and Intersect.
Name Description
Contains(DateTimeRange)
Contains(DateTime, Boolean)
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, Boolean) static
Intersect(DateTimeRange, Boolean)
IntersectsWith(DateTimeRange, DateTimeRange, Boolean) static
IntersectsWith(DateTimeRange, Boolean)
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