Click or drag to resize

TimeIntervalT Methods

The TimeIntervalT generic type exposes the following members.

Methods
  NameDescription
Public methodAdd(TimeIntervalT)
Adds two intervals together, producing an interval list that includes both intervals.
Public methodAdd(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.
Public methodChangeDataTNew
Creates a new interval that is identical to this time interval, except that it has a different value for the Data property.
Public methodContains
Determines if the interval contains a specified date.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(TimeIntervalT)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEquals(TimeIntervalT, IEqualityComparerT)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEqualsEpsilon(TimeIntervalT, Double)
Determines if this time interval is equal to another time interval, using an epsilon to compare the Start and Stop properties of the two intervals. The dates are considered equal if they are within epsilon seconds of each other. All other properties must be identical.
Public methodEqualsEpsilon(TimeIntervalT, Double, IEqualityComparerT)
Determines if this time interval is equal to another time interval, using an epsilon to compare the Start and Stop properties of the two intervals. The dates are considered equal if they are within epsilon seconds of each other. All other properties must be identical.
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public methodGetHashCode(IEqualityComparerT)
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersect(TimeInterval)
Computes an interval which is the intersection of this interval with another, with the data from this one.
Public methodIntersect(TimeIntervalT)
Computes an interval which is the intersection of this interval with another.
Public methodIntersect(TimeIntervalT, IEqualityComparerT)
Computes an interval which is the intersection of this interval with another.
Public methodIntersectMergingData
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.
Public methodRemoveData
Creates a new interval that is identical to this one except that it does not have a Data property.
Public methodToDuration
Returns a Duration representing the span of time between the Start and Stop of the interval.
Public methodToString
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.)
Public methodToTimeStandard
Returns a TimeIntervalT equivalent to this one where the time standard of the start and end dates has been converted to the specified standard.
Top
See Also