您好,我必须拿出timzone在NSTimeZoneNameStyleShortStandard
格式如IST,MST等,但我不能够得到这个下面是我code.o/P就要像GMT+05:30
而不是IST
。NSTimeZoneNameStyleShortStandard不工作的iOS
NSTimeZone *systimeZone = [NSTimeZone systemTimeZone];
NSString *timeZoneString = [systimeZone localizedName:NSTimeZoneNameStyleShortStandard locale:[NSLocale currentLocale]];
if([systimeZone isDaylightSavingTimeForDate:[NSDate date]]){
timeZoneString = [systimeZone localizedName:NSTimeZoneNameStyleShortDaylightSaving locale:[NSLocale currentLocale]];
}
NSLog(@"%@",timeZoneString);
O/P 2013年4月27日04:41:01.679 DJProject [1460:C07] GMT + 05:30
句子。标点。大/小写。拼写。 ......人们不会阅读糟糕的文字。 – Tricertops 2013-04-26 12:00:22
你解决了吗? – Manny 2014-06-24 07:06:30