TimeIntervalT Class 
Namespace: AGI.Foundation.Time
public sealed class TimeInterval<T> : IEquatable<TimeInterval<T>>, IEquatableEpsilon<TimeInterval<T>>
The TimeIntervalT type exposes the following members.
Name  Description  

TimeIntervalT(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.
 
TimeIntervalT(JulianDate, JulianDate, T) 
Initializes a new interval with the specified start date, stop date, and data.
The new interval is closed, meaning that both end points are included.
 
TimeIntervalT(JulianDate, JulianDate, Boolean, Boolean) 
Initializes a new interval with the specified start date and stop date,
also specifying whether the start and stop dates are included.
 
TimeIntervalT(JulianDate, JulianDate, T, 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  

AcceptLeft 
Gets a MergeTimeIntervalDataCallbackT that simply accepts the data on the lefthand side.
 
AcceptRight 
Gets a MergeTimeIntervalDataCallbackT that simply accepts the data on the righthand side.
 
Data 
Gets the userdefined data associated with this interval.
 
Empty 
Gets an empty interval.
 
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(TimeIntervalT) 
Adds two intervals together, producing an interval list that
includes both intervals.
 
Add(TimeIntervalCollectionT) 
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.
 
ChangeDataTNew 
Creates a new interval that is identical to this time interval,
except that it has a different value for the Data property.
 
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(TimeIntervalT) 
Indicates whether another instance of this type is exactly equal to this instance.
 
Equals(TimeIntervalT, IEqualityComparerT) 
Indicates whether another instance of this type is exactly equal to this instance.
 
EqualsEpsilon(TimeIntervalT, Double)  
EqualsEpsilon(TimeIntervalT, Double, IEqualityComparerT)  
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.)  
GetHashCode(IEqualityComparerT) 
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
 
GetType  Gets the Type of the current instance. (Inherited from Object.)  
Intersect(TimeInterval) 
Computes an interval which is the intersection of this interval with another,
with the data from this one.
 
Intersect(TimeIntervalT) 
Computes an interval which is the intersection of this interval with another.
 
Intersect(TimeIntervalT, IEqualityComparerT) 
Computes an interval which is the intersection of this interval with another.
 
IntersectMergingData 
Computes an interval which is the intersection of this interval with another while
also providing a means to merge the data of the two intervals.
 
RemoveData 
Creates a new interval that is identical to this one except that it does not have a
Data property.
 
ToDuration  
ToString 
Returns a string with interval in the format "[Start, Stop)  Data". 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 TimeIntervalT 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.

Name  Description  

DefaultComparer 