iOS----------时间戳与NSDate

1:时间戳转NSDate

  NSString *timeStamp =@"1545965436";

  NSDate *date = [NSDate dateWithTimeIntervalSince1970:[timeStamp intValue]];

猜你喜欢

转载自www.cnblogs.com/KiVen2015/p/10365195.html