Class DateRange
public class DateRange
- Inheritance
-
DateRange
- Inherited Members
- Extension Methods
Constructors
DateRange()
public DateRange()
Remarks
By default, a date range is a half-open interval, where the lower bound is inclusive
(closed) and the upper bound is exclusive (open). The interval notation for this is
[lower, upper). The inequality notation is lower ≤ x < upper. We use the term
"since" to indicate the closed endpoint for the lower bound on a date range, and we use
the term "until" to indicate the closed endpoint for the upper bound. We use the terms
"before" and "after" for the open endpoints on upper and lower bounds, respectively.
(Notice these terms are the same on the git command line for date-related queries.)
DateRange(Bound, Bound)
public DateRange(Bound lower, Bound upper)
Parameters
Properties
After
public DateTimeOffset? After { get; set; }
Property Value
Before
public DateTimeOffset? Before { get; set; }
Property Value
LowerBound
public Bound LowerBound { get; set; }
Property Value
Since
public DateTimeOffset? Since { get; set; }
Property Value
Type
public DateRangeType Type { get; set; }
Property Value
Until
public DateTimeOffset? Until { get; set; }
Property Value
UpperBound
public Bound UpperBound { get; set; }
Property Value
Methods
Clear()
public void Clear()
Set(DateRangeType, DateTimeOffset)
public void Set(DateRangeType type, DateTimeOffset when)
Parameters
typeDateRangeTypewhenDateTimeOffset
Set(DateTimeOffset?, DateTimeOffset?)
public void Set(DateTimeOffset? a, DateTimeOffset? b)
Parameters
aDateTimeOffset?bDateTimeOffset?