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: 24.3.420.0 (24.3.420.0)
Syntax
public Duration Subtract(
	JulianDate subtrahend
)

Parameters

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.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if the result represents a value too large to be stored in a Duration.
Remarks
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