Click or drag to resize

DateTimeInterval Class

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.
Inheritance Hierarchy
SystemObject
  Jam.ShellDateTimeInterval

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax
public class DateTimeInterval

The DateTimeInterval type exposes the following members.

Constructors
  NameDescription
Public methodDateTimeInterval(DateTime, Boolean)
Instantiates an open DateInterval. If 'after' is true, IsInInterval(DateTime) returns true for all all time points after the specified p_Time. If 'after' is false, IsInInterval(DateTime) returns true for all all time points that are before the p_Time specified.
Public methodDateTimeInterval(DateTime, DateTime)
Instantiates a new DateInterval with both bounds specified.
Top
Properties
  NameDescription
Public propertyMax
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.
Public propertyMin
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.
Top
Methods
  NameDescription
Public methodIsInInterval
Checks whether the time given as a parameter is within the interval specified by this DateInterval instance.
Public methodSetInterval
p_MinTime and p_MaxTime cannot be set both to null. p_MinTime must be a time point before p_MaxTime.
Top
See Also