JulianDate.Subtraction Operator (JulianDate, JulianDate) |
Subtracts a Julian date from another Julian date, producing a
Duration.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static Duration operator -(
JulianDate left,
JulianDate right
)
Public Shared Operator - (
left As JulianDate,
right As JulianDate
) As Duration
public:
static Duration operator -(
JulianDate left,
JulianDate right
)
static let inline (-)
left : JulianDate *
right : JulianDate : Duration
Parameters
- left
- Type: AGI.Foundation.Time.JulianDate
The minuend. - right
- Type: AGI.Foundation.Time.JulianDate
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