Skip to main content

DateTimeRange Methods

The date-time range.
Name Description
Contains(DateTimeRange) Checks whether the current range contains the specified date-time range.
Contains(DateTime) Checks whether the range contains the specified date-time value.
Equals(DateTimeRange) Determines whether the current range is equal to the specified range.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the range is equal to the specified object.
GetHashCode() Serves as the default hash function.
GetType() Gets the Type of the current instance. Inherited from Object.
Intersect(DateTimeRange, DateTimeRange) static Computes the intersection of the specified ranges.
Intersect(DateTimeRange) Computes the intersection of the current range with the specified range.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the range.
ToString(IFormatProvider) Returns a string that represents the range and formatted using the specified culture-specific formatting information.
ToString(String, IFormatProvider) Returns a string that represents the range and formatted using the specified format string and culture-specific formatting information.
TryParse(String, CultureInfo, out DateTimeRange) static Tries to parse the specified string and convert it into the date-time range.
Union(DateTimeRange, DateTimeRange) static Computes the union of the specified ranges.
Union(DateTimeRange) Computes the union of the current range and the specified range.
See Also