Click or drag to resize

JulianDateSubtraction Operator (JulianDate, JulianDate)

Subtracts a Julian date from another Julian date, yielding a Duration.

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 Duration operator -(
	JulianDate left,
	JulianDate right
)

Parameters

left
Type: AGI.Foundation.TimeJulianDate
The minuend.
right
Type: AGI.Foundation.TimeJulianDate
The subtrahend.

Return Value

Type: Duration
The Duration that is the result of the subtraction; that is, left minus right. The time standard will be the same as the time standard of the subtrahend.
Remarks
This method subtracts right from left and returns the Duration between them. The computation is done in the time standard of right, or the closest standard that is safe for arithmetic if right's time standard is not safe. For best performance, the left and right Julian dates should have the same time standard and it should be safe for arithmetic.
See Also