objective c - NSDate zero out seconds without rounding up -


I would like to know that someone can help me with my method. I have the following method, which will zero the second value of an NSDate object:

  - With the date of the NSDate *, enter the second address: (NSDT *) Date {NTEEinverworld time = round ([date TimeInternationalConfident) / 60.0) * 60.0; Return [date of the NSDT date time interval monster date: time]; }   

The problem occurs when a date is passed:

  2011-03-16 18:21:43 +0000   

This returns:

  2011-03-16 18:22:00 +0000   

I do not have this round Should be given, because it is a user who is actually specifying the date, so they should be accurate for the requested minutes.

Any help is greatly appreciated.

- With the date of jerseys (dates *) * (NSDT *) Date {NTEInInWorld Time = Floor (Class = "post-text" itemprop = "text" [date timeInterlassins refinance / 60.0) * 60.0; Return [date of the NSDT date time interval monster date: time]; }

Comments