摘要: NSDate *fooDate = [NSDate date];unsigned units = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSWeekdayCalendarUnit;NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];NSDateComponents *components = [calendar components:units fromDate:fooDate] 阅读全文
posted @ 2011-06-13 15:44 周宏伟 阅读(570) 评论(0) 推荐(1) 编辑