I\'m trying to get current hour minutes and seconds. Here is the code I use
NSDate *now = [NSDate date]; NSCalendar *gregorian = [[NSCalendar alloc]initWithCal
NSDateComponents *components = [[NSCalendar currentCalendar] components:NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit fromDate:[NSDate date]]; NSInteger hour= [components hour]; NSInteger minute = [components minute]; NSInteger second = [components second];