//获取系统时间戳
NSDate* localDate = [NSDate date];
NSTimeInterval interval=[localDate timeIntervalSince1970];
NSString *timestamp = [NSString stringWithFormat:@"%d", (long)interval];
NSLog(timestamp);
【009】iOS获取当前时间戳
最新推荐文章于 2024-07-22 08:30:00 发布