TimeIntervalCollection<T>.Complement Method (JulianDate, JulianDate, T) |
Computes the complement of this time interval collection.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic TimeIntervalCollection<T> Complement(
JulianDate startDate,
JulianDate endDate,
T data
)
Public Function Complement (
startDate As JulianDate,
endDate As JulianDate,
data As T
) As TimeIntervalCollection(Of T)
public:
TimeIntervalCollection<T>^ Complement(
JulianDate startDate,
JulianDate endDate,
T data
)
member Complement :
startDate : JulianDate *
endDate : JulianDate *
data : 'T -> TimeIntervalCollection<'T>
Parameters
- startDate
- Type: AGI.Foundation.Time.JulianDate
The earliest date to include in the complement. - endDate
- Type: AGI.Foundation.Time.JulianDate
The latest date to include in the complement. - data
- Type: T
The value to set for the Data property for each TimeInterval in the returned collection.
Return Value
Type:
TimeIntervalCollection<T>The complement of this instance.
Remarks
The new
TimeIntervalCollection<T> is the complement of this
TimeIntervalCollection<T> within
the given
startDate and
endDate bounds. In other words,
the new
TimeIntervalCollection<T> will represent all dates that are between the start and end dates
and that were NOT present in the original collection. Any dates before the given
startDate and
after the given
endDate are removed.
See Also