A class representing datetime intervals.
The implementation supports closed intervals with an upper and lower a bound,
as well as open intervals describing a point in time to search after or before it.
| C# | Visual Basic | Visual C++ |
public class DateTimeInterval
Public Class DateTimeInterval
public ref class DateTimeInterval
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| DateTimeInterval(DateTime, DateTime) |
Instantiates a new DateInterval with both bounds specified.
| |
| DateTimeInterval(DateTime, Boolean) |
Instantiates an open DateInterval.
If 'after' is true, returns true for all
all time points after the specified p_Time.
If 'after' is false, returns true for all
all time points that are before the p_Time specified.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsInInterval(DateTime) |
Checks whether the time given as a parameter is within the
interval specified by this DateInterval instance.
| |
| Max |
The right bound of the DateInterval.
To keep the bounds consistent if Max is set to a time point before Min, the bounds are switched.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Min |
The left bound of the DateInterval
To keep the bounds consistent if Min is set to a time point after Max, the bounds are switched.
| |
| SetInterval(Nullable<(Of <(DateTime>)>), Nullable<(Of <(DateTime>)>)) |
p_MinTime and p_MaxTime cannot be set both to null.
p_MinTime must be a time point before p_MaxTime.
| |
| ToString()()() | (Inherited from Object.) |
| Object | |
| DateTimeInterval | |