title: Android comparing time and milliseconds
body: <p>I'm trying to compare time in milliseconds in Android with the system time.
  <code>startDate</code> and <code>endDate</code> are all <code>long</code> and represent timestamps in milliseconds.</p>
  
  <pre><code>if (startDate &lt;= System.currentTimeMillis()  &gt;= endDate)
  </code></pre>
  
  <p>This is the error I'm getting: </p>
  
  <blockquote>
    <p>The operator >= is undefined for the argument type(s) boolean, long</p>
  </blockquote>