Time.compare

Overview | Methods | Fields | This Package | All Packages

Time.compare

Compares two Time objects.

Syntax

public static int compare( Time t1, Time t2 )

Parameters

t1

The first Time object to compare.

t2

The second Time object to compare.

Return Value

Returns 1 if t1 is greater than t2; returns 0 if the two Time objects are equal; returns -1 if t2 is greater that t1.

See Also   compareTo, equals