Click or drag to resize

JulianDateGetCenterOfWindow Method

Divides time into windows, each of length windowLength seconds, with the first window centered on referenceEpoch. Then, identifies which window contains date and returns the date that is at the center of that window. This is helpful for computing a discrete value for a range of Julian dates.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static JulianDate GetCenterOfWindow(
	JulianDate referenceEpoch,
	double windowLength,
	JulianDate date
)

Parameters

referenceEpoch
Type: AGI.Foundation.TimeJulianDate
The Julian date that defines the start of a window.
windowLength
Type: SystemDouble
The length of each window, in seconds.
date
Type: AGI.Foundation.TimeJulianDate
The date to find.

Return Value

Type: JulianDate
The date at the center of the window that contains the specified date.
See Also