Subtracts the specified
Duration from this instance.
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(
Duration other
)
Public Function Subtract (
other As Duration
) As Duration
public:
Duration Subtract(
Duration other
)
member Subtract :
other : Duration -> Duration
Parameters
- other
- Type: AGI.Foundation.TimeDuration
The Duration to subtract from this instance.
Return Value
Type:
DurationA
Duration that represents the value of this instance minus the value of
other.
Exceptions Remarks
The two
Durations must have the same time standard, or one of the time standards must be null.
Attempting to add two
Duration instances with different time standards will result in an
ArgumentException.
See Also