Struct DateRangeBound
Represents a date range boundary, composed by a Date
and a precision.
Assembly: Cassandra.dll
Syntax
public struct DateRangeBound : IEquatable<DateRangeBound>
Remarks
Constructors
DateRangeBound(DateTimeOffset, DateRangePrecision)
Declaration
public DateRangeBound(DateTimeOffset timestamp, DateRangePrecision precision)
Parameters
Fields
Unbounded
The unbounded DateRangeBound instance. Unbounded bounds are syntactically
represented by a *
(star) sign.
Declaration
public static readonly DateRangeBound Unbounded
Field Value
Properties
Precision
The precision portion of the boundary.
Declaration
public DateRangePrecision Precision { get; }
Property Value
Timestamp
The timestamp portion of the boundary.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Methods
Equals(DateRangeBound)
Returns true if the value of this instance and other are the same.
Declaration
public bool Equals(DateRangeBound other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Parse(string)
Returns the DateRangeBound representation of a given string.
String representations of dates are always expressed in Coordinated Universal Time(UTC)
Declaration
public static DateRangeBound Parse(string boundaryString)
Parameters
Type |
Name |
Description |
string |
boundaryString |
|
Returns
Exceptions
ToString()
Returns the string representation of the instance.
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(DateRangeBound, DateRangeBound)
Compares value equality of 2 DateRangeBound instances.
Declaration
public static bool operator ==(DateRangeBound a, DateRangeBound b)
Parameters
Returns
operator !=(DateRangeBound, DateRangeBound)
Compares value inequality of 2 DateRangeBound instances.
Declaration
public static bool operator !=(DateRangeBound a, DateRangeBound b)
Parameters
Returns
Implements