标签:
NSString *str=@"1439965800";//时间戳 /*因为时间差问题所以要加8个小时==28800sec*/ NSTimeInterval time=[str doubleValue]+28800; NSDate *detailDate=[NSDate dateWithTimeIntervalSince1970:time]; NSLog(@"detailDate:%@",detailDate);//detailDate:2015-08-19 14:30:00 +0000
标签:
原文地址:http://my.oschina.net/u/2410306/blog/520735