XMLGregorianCalendar.Add(Duration) Method

Definition

Add duration to this instance.

[Android.Runtime.Register("add", "(Ljavax/xml/datatype/Duration;)V", "GetAdd_Ljavax_xml_datatype_Duration_Handler")]
public abstract void Add (Javax.Xml.Datatype.Duration? duration);
[<Android.Runtime.Register("add", "(Ljavax/xml/datatype/Duration;)V", "GetAdd_Ljavax_xml_datatype_Duration_Handler")>]
abstract member Add : Javax.Xml.Datatype.Duration -> unit

Parameters

duration
Duration

Duration to add to this XMLGregorianCalendar.

Attributes

Exceptions

when duration parameter is null.

Remarks

Add duration to this instance.

The computation is specified in XML Schema 1.0 Part 2, Appendix E, Adding durations to dateTimes>. date/time field mapping table defines the mapping from XML Schema 1.0 dateTime fields to this class' representation of those fields.

Java documentation for javax.xml.datatype.XMLGregorianCalendar.add(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.

Applies to