这是我的代码
“时间间隔”= 1372418789000;
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm:ss"];
NSDate *date = [NSDate dateWithTimeIntervalSince1970:1372418789000];
NSString *formattedDateString = [dateFormatter stringFromDate:date];
NSLog(@"formattedDateString: %@", formattedDateString);
输出格式为DateString: 45460-03-21 10:53:20
但我需要的输出是 2013-06-28 04:26:29 America/Los_Angeles