compare(long, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre>public static&nbsp;int&nbsp;compare(long&nbsp;t1,
          long&nbsp;t2)</pre>
<div class="block">Compare two times.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t1</code> - the first time to compare.</dd><dd><code>t2</code> - the second time to compare.</dd>
<dt><span class="strong">Returns:</span></dt><dd>a negative integer, a positive integer, or zero as t1 is
         before,