title: Compare two times in Android
body: <p>I know this is a quite discussed topic but I think I have a very specific problem.</p>
  
  <p>I'm storing opening and closing time of stores on a database as well as GPS coordinates. I'd like to be able to show the stores on a map with a green marker if the store is open and red if close (wrt current time).</p>
  
  <p>My problem is that I'm using the method string.compareTo(string) to know if the store is closed or open. Let's say we are on monday, the store close at 02:00 in the morning (tuesday morning), current time is 23:00. How can I tell the store is still open since 02:00 &lt; 23:00 ?</p>
  
  <p>Thank you for any answer,</p>
  
  <p>Arnaud</p>