Duration.Subtract(Duration) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes a new duration whose value is <code>this-rhs</code>.
[Android.Runtime.Register("subtract", "(Ljavax/xml/datatype/Duration;)Ljavax/xml/datatype/Duration;", "GetSubtract_Ljavax_xml_datatype_Duration_Handler")]
public virtual Javax.Xml.Datatype.Duration? Subtract (Javax.Xml.Datatype.Duration? rhs);
[<Android.Runtime.Register("subtract", "(Ljavax/xml/datatype/Duration;)Ljavax/xml/datatype/Duration;", "GetSubtract_Ljavax_xml_datatype_Duration_Handler")>]
abstract member Subtract : Javax.Xml.Datatype.Duration -> Javax.Xml.Datatype.Duration
override this.Subtract : Javax.Xml.Datatype.Duration -> Javax.Xml.Datatype.Duration
Parameters
- rhs
- Duration
<code>Duration</code> to subtract from this <code>Duration</code>.
Returns
New <code>Duration</code> created from subtracting <code>rhs</code> from this <code>Duration</code>.
- Attributes
Exceptions
If two durations cannot be meaningfully subtracted. For example, subtracting one day from one month causes this exception.
If the rhs parameter is null.
Remarks
Java documentation for javax.xml.datatype.Duration.subtract(javax.xml.datatype.Duration).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.