Click or drag to resize

JulianDateSubtract Method (Duration)

Subtracts a Duration from this Julian date, producing a new Julian date.

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


Type: AGI.Foundation.TimeDuration
The duration to subtract.

Return Value

Type: JulianDate
A new JulianDate that is the result of the subtraction.
ArgumentOutOfRangeException Thrown if the result represents a value too large to be stored in a JulianDate.
If the Standard of duration is different from the Standard of this JulianDate, the JulianDate will be converted to duration's time standard before performing the subtraction. Then, the result will be converted to this JulianDate's time standard before it is returned, unless the result cannot be represented in this JulianDate's time standard, in which case it will remain in a time standard that can represent the result.
See Also