Table of Contents

Class DateRange

Namespace
Shift.Common.Base
Assembly
Shift.Common.dll
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

lower Bound
upper Bound

Properties

After

public DateTimeOffset? After { get; set; }

Property Value

DateTimeOffset?

Before

public DateTimeOffset? Before { get; set; }

Property Value

DateTimeOffset?

LowerBound

public Bound LowerBound { get; set; }

Property Value

Bound

Since

public DateTimeOffset? Since { get; set; }

Property Value

DateTimeOffset?

Type

public DateRangeType Type { get; set; }

Property Value

DateRangeType

Until

public DateTimeOffset? Until { get; set; }

Property Value

DateTimeOffset?

UpperBound

public Bound UpperBound { get; set; }

Property Value

Bound

Methods

Clear()

public void Clear()

Set(DateRangeType, DateTimeOffset)

public void Set(DateRangeType type, DateTimeOffset when)

Parameters

type DateRangeType
when DateTimeOffset

Set(DateTimeOffset?, DateTimeOffset?)

public void Set(DateTimeOffset? a, DateTimeOffset? b)

Parameters

a DateTimeOffset?
b DateTimeOffset?