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