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)
public static JulianDate GetCenterOfWindow(
	JulianDate referenceEpoch,
	double windowLength,
	JulianDate date


Type: AGI.Foundation.TimeJulianDate
The Julian date that defines the start of a window.
Type: SystemDouble
The length of each window, in seconds.
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