CocoaDev

Edit AllPages

Hi,

is there any way I can get an NSCalendarDate to round itself to the nearest 5 minutes?

If not, can anyone point me in the right direction on how to achieve this manually?

Thanks for your help!

-P


Interface

@interface NSDate (MyAdditions)

@end

Implementation

@implementation NSDate (MyAdditions)

@end