Android.Text.Format.Time.Compare Method
Compare two Time objects and return a negative number if a is less than b, a positive number if a is greater than b, or 0 if they are equal.

Syntax

[Android.Runtime.Register("compare", "(Landroid/text/format/Time;Landroid/text/format/Time;)I", "")]
public static int Compare (Time a, Time b)

Parameters

a
first Time instance to compare
b
second Time instance to compare

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif either argument is null
Java.Lang.IllegalArgumentExceptionif Time.AllDay is true but hour, minute, and second are not 0.

Remarks

Compare two Time objects and return a negative number if a is less than b, a positive number if a is greater than b, or 0 if they are equal.

[Android Documentation]

Requirements

Namespace: Android.Text.Format
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3