NSString *[email protected]"1439965800";//时间戳 /*因为时间差问题所以要加8个小时==28800sec*/ NSTimeInterval time=[str doubleValue]+28800; NSDate *detailDate=[NSDate dateWithTimeIntervalSince1970:time]; NSLog(@"detailDate:%@",detailDate);//detailDate:2015-08-19 14:30:00 +0000
时间: 2024-10-10 15:41:53