【009】iOS获取当前时间戳

来源:互联网 发布:英国大学申请 知乎 编辑:程序博客网 时间:2024/06/16 10:04
//获取系统时间戳    NSDate* localDate = [NSDate date];    NSTimeInterval interval=[localDate timeIntervalSince1970];    NSString *timestamp = [NSString stringWithFormat:@"%d", (long)interval];    NSLog(timestamp);

0 0