TimeInterval Class |
Namespace: AGI.Foundation.Time
The TimeInterval type exposes the following members.
Name | Description | |
---|---|---|
TimeInterval(JulianDate, JulianDate) |
Initializes a new interval with the specified start date and stop date.
The new interval is closed, meaning that both end points are included.
| |
TimeInterval(JulianDate, JulianDate, Boolean, Boolean) |
Initializes a new interval with the specified start date, stop date, and data,
also specifying whether the start and stop dates are included.
|
Name | Description | |
---|---|---|
Empty |
Gets an empty interval.
| |
Infinite |
Gets an interval that represents the maximum possible span of time.
| |
IsEmpty |
Gets a value indicating whether the interval is empty.
Emptiness is defined as either the stop time comes before the start time, or the interval represents zero duration with exclusive endpoints.
To determine if the amount of time contained in an interval is zero,
convert to a duration using ToDuration and check for equality with Zero.
| |
IsStartIncluded |
Gets a value indicating whether the Start date is included in the interval.
| |
IsStopIncluded |
Gets a value indicating whether the Stop date is included in the interval.
| |
Start |
Gets the start date of the interval.
| |
Stop |
Gets the stop date of the interval.
|
Name | Description | |
---|---|---|
Add(TimeInterval) |
Adds two intervals together, producing an interval list that
includes both intervals.
| |
Add(TimeIntervalCollection) |
Adds an interval list to this interval, producing a new interval list
that includes this interval plus all intervals in the input list.
The input list is not changed by this method.
| |
AddDataT |
Creates a TimeIntervalT that is equivalent to this time interval,
but with the specified Data value.
| |
Contains |
Determines if the interval contains a specified date.
| |
Equals(Object) |
Indicates whether another object is exactly equal to this instance.
(Overrides ObjectEquals(Object).) | |
Equals(TimeInterval) |
Indicates whether another instance of this type is exactly equal to this instance.
| |
EqualsEpsilon | ||
GetHashCode |
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Intersect |
Computes an interval which is the intersection of this interval with another.
| |
ToDuration | ||
ToString |
Returns a string with interval in the format "[Start, Stop)". Square brackets indicate
that the end point of the interval is included in the intervals. Parenthesis indicate that the
end point is not included.
(Overrides ObjectToString.) | |
ToTimeStandard |
Returns a TimeInterval equivalent to this one where the time standard
of the start and end dates has been converted to the specified standard.
|
Name | Description | |
---|---|---|
Equality |
Returns if the two instances are exactly equal.
| |
Inequality |
Returns if the two instances are not exactly equal.
|