日历 NSCalendar
【推荐阅读】微服务还能火多久?>>> #import "ViewController.h" @interface ViewController () @property ( strong , nonatomic ) NSCalendar *calender1; @property ( strong , nonatomic ) NSCalendar *calender2; @end @implementation ViewController - ( void )viewDidLoad { [ super viewDidLoad ]; // Do any additional setup after loading the view, typically from a nib. } - ( IBAction )tapBtn1:( id )sender { self . calender1 = [ NSCalendar currentCalendar ]; self . calender2 = [ NSCalendar autoupdatingCurrentCalendar ]; NSLog ( @"%@" , self . calender1 . calendarIdentifier ); NSLog ( @"%@" , self . calender2 .