JulianDate.Subtract Method (Duration) |
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic JulianDate Subtract(
Duration duration
)
Public Function Subtract (
duration As Duration
) As JulianDate
public:
JulianDate Subtract(
Duration duration
)
member Subtract :
duration : Duration -> JulianDate
Parameters
- duration
- Type: AGI.Foundation.Time.Duration
The duration to subtract.
Return Value
Type:
JulianDate
A new
JulianDate that is the result of the subtraction.
Exceptions
Remarks
If the
Standard of
duration is
different from the
Standard of this
JulianDate,
this
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
TimeStandard that can represent the result.
See Also