Click or drag to resize

JulianDateSubtract Method (JulianDate)

Subtracts another Julian date from this Julian date.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.1.416.0 (23.1.416.0)
public Duration Subtract(
	JulianDate subtrahend


Type: AGI.Foundation.TimeJulianDate
The Julian Date to subtract from this Julian Date.

Return Value

Type: Duration
The Duration that is the result of the subtraction. The time standard will be the same as the time standard of the subtrahend.
ArgumentOutOfRangeException Thrown if the result represents a value too large to be stored in a Duration.
This method subtracts the subtrahend Julian date from this Julian date and returns the Duration between them. The computation is done in the time standard of the subtrahend, or the closest standard that is safe for arithmetic if the subtrahend's time standard is not safe. For best performance, this Julian date and the subtrahend Julian date should have the same time standard and it should be safe for arithmetic.
See Also