DateRange Structure |
A date range can have one or two bounds, namely lower bound and upper bound, to represent an interval of time. Date range bounds are both inclusive. For example:
Note that this representation of DateRangeField does not support Dates outside of the range supported by DateTimeOffset: from 1/1/0001 12:00:00 AM +00:00 to 12/31/9999 11:59:59 PM +00:00.
Namespace: Dse.Search
public struct DateRange : IEquatable<DateRange>, IComparable<DateRange>
The DateRange type exposes the following members.
Name | Description | |
---|---|---|
DateRange(DateRangeBound) |
Creates a new instance of DateRange using a lower bound and an upper bound.
Consider using Parse(String) to create instances more easily. | |
DateRange(DateRangeBound, DateRangeBound) |
Creates a new instance of DateRange using a lower bound and an upper bound.
Consider using Parse(String) to create instances more easily. |
Name | Description | |
---|---|---|
LowerBound |
Gets the lower bound of this range (inclusive).
| |
UpperBound |
Gets the upper bound of this range (inclusive).
|
Name | Description | |
---|---|---|
CompareTo |
Compares the DateRange based to the bytes representation.
| |
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) | |
Equals(DateRange) |
Returns true if the value of this DateRange instance and other are the same.
| |
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
Parse |
Returns the DateRange representation from a given string.
String representations of dates are always expressed in Coordinated Universal Time(UTC) | |
ToString |
Returns the string representation of the instance.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
Compares value equality of 2 DateRange instances.
| |
Inequality |
Compares value inequality of 2 DateRange instances.
|