title: Remaining time from current time to 18:30
body: <p>i want learn remaining time from current time to 18.30 </p>
  
  <p>My code is not working:</p>
  
  <pre><code>long currentTime = System.currentTimeMillis();    
  long endTime = 18:30;
  long remaining = endTime - currentTime;
  long hours = remaining / 3600000;
  long mins = remaining / 60000 % 60;
  long seconds = remaining / 1000 % 60;
  String remainingText = String.format("%02d:%02d:%02d", hours,mins,seconds);
  </code></pre>