TimeIntervalCollectionTComplement 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: 24.3.420.0 (24.3.420.0)
Syntax public 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.TimeJulianDate
The earliest date to include in the complement. - endDate
- Type: AGI.Foundation.TimeJulianDate
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:
TimeIntervalCollectionTThe complement of this instance.
Remarks
The new
TimeIntervalCollectionT is the complement of this
TimeIntervalCollectionT within
the given
startDate and
endDate bounds. In other words,
the new
TimeIntervalCollectionT 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