Click or drag to resize

TimeInterval Methods

The TimeInterval type exposes the following members.

Methods
  NameDescription
Public methodAdd(TimeInterval)
Adds two intervals together, producing an interval list that includes both intervals.
Public methodAdd(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.
Public methodAddDataT
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(TimeInterval)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEqualsEpsilon
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersect
Computes an interval which is the intersection of this interval with another.
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)". 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 TimeInterval equivalent to this one where the time standard of the start and end dates has been converted to the specified standard.
Top
See Also