Time.compareTo

Overview | Methods | Fields | This Package | All Packages

Time.compareTo

Compares this Time object to another Time object.

Syntax

public int compareTo( Time t )

Parameters

t

The Time object to compare the current Time object to.

Return Value

Returns 1 if t is greater than the current Time object; returns 0 if the two Time objects are equal; returns -1 if the current Time object is greater that t.

See Also    compare, equals