Use dateformate "KK" to get hour range 0 to 11.
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
NSLocale *locale = [DateUtility createLocale];
locale=[[NSLocale alloc]initWithLocaleIdentifier:@"ja_JPPOSIX"];
[dateFormatter setLocale:locale];
dateFormatter.dateFormat = @"KK:mm";
NSDate *date = [dateFormatter dateFromString:time];
dateFormatter.dateFormat = @"a";
NSLog(@"Meridian=%@",[dateFormatter stringFromDate:date]);
dateFormatter.dateFormat = @"KK";
NSLog(@"Hour=%@",[dateFormatter stringFromDate:date]);