Udostępnij za pośrednictwem


Timestamp.CompareTo(Timestamp) Method

Definition

Compares this Timestamp object to the given Timestamp object.

[Android.Runtime.Register("compareTo", "(Ljava/sql/Timestamp;)I", "GetCompareTo_Ljava_sql_Timestamp_Handler")]
public virtual int CompareTo (Java.Sql.Timestamp? ts);
[<Android.Runtime.Register("compareTo", "(Ljava/sql/Timestamp;)I", "GetCompareTo_Ljava_sql_Timestamp_Handler")>]
override this.CompareTo : Java.Sql.Timestamp -> int

Parameters

ts
Timestamp

the Timestamp object to be compared to this Timestamp object

Returns

the value 0 if the two Timestamp objects are equal; a value less than 0 if this Timestamp object is before the given argument; and a value greater than 0 if this Timestamp object is after the given argument.

Attributes

Remarks

Compares this Timestamp object to the given Timestamp object.

Added in 1.4.

Java documentation for java.sql.Timestamp.compareTo(java.sql.Timestamp).

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