title: NSDate zero out seconds without rounding up
body: <p>I would like to know if anyone can help me with my method. I have the following method, which will zero out the seconds value of a NSDate object:</p>
  
  <pre><code>- (NSDate *)dateWithZeroSeconds:(NSDate *)date {
      NSTimeInterval time = round([date timeIntervalSinceReferenceDate] / 60.0) * 60.0;
      return  [NSDate dateWithTimeIntervalSinceReferenceDate:time];
  }
  </code></pre>
  
  <p>The problem is when passed a date such as:</p>
  
  <pre><code>2011-03-16 18:21:43 +0000
  </code></pre>
  
  <p>it returns:</p>
  
  <pre><code>2011-03-16 18:22:00 +0000
  </code></pre>
  
  <p>I do not want this rounding to occur, as it is a user who is actually specifying the date, so it needs to be exact to the minute they request.</p>
  
  <p>Any help is greatly appreciated.</p>