摘要:
1,转化的方法为 NSString*timeSp = [NSStringstringWithFormat:@"%d", (long)[localeDatetimeIntervalSince1970]]; NSLog(@"timeSp:%@",timeSp);//时间戳的值2,把获取的时间转化为当前时间NSDate*datenow = [NSDatedate];//现在时间,你可以输出来看下是什么格式 NSTimeZone*zone = [NSTimeZonesystemTimeZone]; NSIntegerinterval = [zoneseconds 阅读全文