public class DateTimeRange
Dim instance As DateTimeRange
public ref class DateTimeRange
No code example is currently available or this language may not be supported.
DateTimeRange | Initializes a new instance of the DateTimeRange class. |
DateTimeRange(DateTimeRange) | Initializes a copied new instance of the DateTimeRange class. |
DateTimeRange(DateOnly, DateOnly) | Initializes a new instance of the DateTimeRange class. |
DateTimeRange(DateTime, DateTime) | Initializes a new instance of the DateTimeRange class. |
Contains(DateOnly) | Verifies if the given value is contained in this range, including start and end |
Contains(DateTime) | Verifies if the given value is contained in this range, including start and end |
Distance | Gets the distance between the Start and the End |
Empty | Get an empty range |
Extend | Extends the Start and/or End by the specified timeSpan |
IsOrdered | Verifies that the order of the dates is correct, Start < End |
IsWithin | Verifies if the this range is contained entirely in the given range, including start and end |
Offset | Offsets the Start and End by the specified timeSpan |
Order | Orders the range, so that Start is guaranteed to be less or equal End |
Reduce | Reduces the Start and/or End by the specified timeSpan |
Difference |
Calculates the difference of two DateTimeRanges. If the two ranges do not overlap, the result is
the first DateTimeRange. Otherwise, the result is the first DateTimeRange without where both ranges overlap.
(Defined by DateTimeExtensions) |
DoesOverlap |
Verifies if DateTimeRange a overlapps with DateTimeRange b.
(Defined by DateTimeExtensions) |
Intersection |
Calculates the intersection of two DateTimeRanges. If the two ranges do not overlap, the result is
an empty DateTimeRange. Otherwise, the result is the DateTimeRange that where both ranges overlap.
(Defined by DateTimeExtensions) |
Split |
Splits the given range of DateTime into the given number of parts.
(Defined by DateTimeExtensions) |
Union |
Calculates the union of two DateTimeRanges. If the two ranges do not overlap, the result is
an empty DateTimeRange. Otherwise, the result is the DateTimeRange that contains both ranges.
(Defined by DateTimeExtensions) |