title: Converting ms to hours, min, secs giving empty result
body: <p>I want to convert a long of ms to days, hours, minutes, and seconds but sometimes the result is empty and just "". </p>
  
  <p>My method is,</p>
  
  <pre><code>public static String getTime(long enlapsed) {
  long days = TimeUnit.MILLISECONDS.toDays(enlapsed);
  enlapsed -= TimeUnit.DAYS.toMillis(days);
  
  long hours = TimeUnit.MILLISECONDS.toHours(enlapsed);
  enlapsed -= TimeUnit.HOURS.toMillis(hours);
  
  long minutes = TimeUnit.MILLISECONDS.toMinutes(enlapsed);
  enlapsed -= TimeUnit.MINUTES.toMillis(minutes);
  
  long seconds = TimeUnit.MILLISECONDS.toSeconds(enlapsed);
  
  String result = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
  return result.replace("0d ", "").replace("0h ", "").replace("0m ", "").replace("0s ", ""); 
  }
  </code></pre>
  
  <p>I can't figure out why the result would be empty.</p>