title: In java how do we round off time to nearest hour and minute?
body: <p>I have a String which has the time. I need to round it off to the nearest hour and also the nearest minute. How do I do it in java? 
  Ex: String time="12:58:15";
  I need to round it off to 1:00:00 and also 12:58:00</p>