title: Round NSDate to the nearest 5 minutes
body: <p>For example I have</p>
  
  <pre><code>NSDate *curDate = [NSDate date];
  </code></pre>
  
  <p>and its value is 9:13 am. I am not using year, month and day parts of curDate.</p>
  
  <p>What I want to get is date with 9:15 time value; If I have time value 9:16 I want to advance it to 9:20 and so on.</p>
  
  <p>How can I do that with NSDate?</p>