Sdílet prostřednictvím


Duration.IsLongerThan(Duration) Method

Definition

Checks if this duration object is strictly longer than another Duration object.

[Android.Runtime.Register("isLongerThan", "(Ljavax/xml/datatype/Duration;)Z", "GetIsLongerThan_Ljavax_xml_datatype_Duration_Handler")]
public virtual bool IsLongerThan (Javax.Xml.Datatype.Duration? duration);
[<Android.Runtime.Register("isLongerThan", "(Ljavax/xml/datatype/Duration;)Z", "GetIsLongerThan_Ljavax_xml_datatype_Duration_Handler")>]
abstract member IsLongerThan : Javax.Xml.Datatype.Duration -> bool
override this.IsLongerThan : Javax.Xml.Datatype.Duration -> bool

Parameters

duration
Duration

Duration to test this Duration against.

Returns

true if the duration represented by this object is longer than the given duration. false otherwise.

Attributes

Exceptions

If the underlying implementation cannot reasonably process the request, e.g. W3C XML Schema allows for arbitrarily large/small/precise values, the request may be beyond the implementations capability.

If duration is null.

Remarks

Checks if this duration object is strictly longer than another Duration object.

Duration X is "longer" than Y if and only if X>Y as defined in the section 3.2.6.2 of the XML Schema 1.0 specification.

For example, "P1D" (one day) > "PT12H" (12 hours) and "P2Y" (two years) > "P23M" (23 months).

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

See also