NSDate *testDate = [NSDate date]; NSLog(@"The time interval is: %f", [testDate timeIntervalSince1970]); 转载于:https://blog.51cto.com/roadofios/1136203