头文件#import "Foundation/NSCalendarDate.h"

+ (id)calendarDate;

- (int)yearOfCommonEra;
- (int)monthOfYear;
- (int)dayOfMonth;
- (int)dayOfWeek;
- (int)dayOfYear;
- (int)dayOfCommonEra;
- (int)hourOfDay;
- (int)minuteOfHour;
- (int)secondOfMinute;
代 码部分:
NSCalendarDate* NowDate;
NowDate=[NSCalendarDate calendarDate];
int ii = [NowDate minuteOfHour];

04-20 17:43