title: Java: Convert String containing days, hours, minutes to Date object
body: <p>My application gives me a string like 1 day 15 min or 15 hours 10 min etc.
  I would like to convert this string to Date object.
  I was trying some thing like this</p>
  
  <pre><code>Date afterAddingTenMins = new Date(t + (Integer.valueOf(duration) * ONE_MINUTE_IN_MILLIS));
  </code></pre>
  
  <p>But this gives me invalid Integer exception because string contains words like hours and min.<br>
  What is the best way to do it.</p>
  
  <p>Thank you.</p>