NSDate *date = [NSDate date];
NSDateFormatter *formetter = [[NSDateFormatter alloc]init];
formetter.dateFormat = @"yyyyMMddHHmmss.**sss**";
NSString *dateStr = [formetter stringFromDate:date];
NSLog(@"str -- %@",dateStr);
NSDate *date = [NSDate date];
NSDateFormatter *formetter = [[NSDateFormatter alloc]init];
formetter.dateFormat = @"yyyyMMddHHmmss.**sss**";
NSString *dateStr = [formetter stringFromDate:date];
NSLog(@"str -- %@",dateStr);
本文标题:iOS获取时间-(毫秒级别)
本文链接:https://www.haomeiwen.com/subject/qoksuttx.html
网友评论