title: time rounding to nearest 10th minute
body: <p>i am using the following function to round the time interval to nearest 5th minute </p>
  
  <pre><code>-(NSDate *)roundDateTo5Minutes:(NSDate *)mydate{
  // Get the nearest 5 minute block
  NSDateComponents *time = [[NSCalendar currentCalendar]
                                                components:NSHourCalendarUnit | NSMinuteCalendarUnit
                                                fromDate:mydate];
  NSInteger minutes = [time minute];
  int remain = minutes % 5;
  // if less then 3 then round down
  if (remain&lt;3){
      // Subtract the remainder of time to the date to round it down evenly
      mydate = [mydate addTimeInterval:-60*(remain)];
  }else{
      // Add the remainder of time to the date to round it up evenly
      mydate = [mydate addTimeInterval:60*(5-remain)];
  }
  return mydate;
  </code></pre>
  
  <p>}
  now i want to rounded the time to nearest tenth minute .....
  can any one please help me how to do that thing </p>