NSDate *date = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSInteger interval = [zone secondsFromGMTForDate: date]; NSDate *localeDate = [date dateByAddingTimeInterval: interval];本文共 248 字,大约阅读时间需要 1 分钟。
NSDate *date = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSInteger interval = [zone secondsFromGMTForDate: date]; NSDate *localeDate = [date dateByAddingTimeInterval: interval];转载于:https://www.cnblogs.com/ejllen/p/3747120.html