首页 > 代码库 > 时间戳

时间戳

    NSDate *date = [NSDatedateWithTimeIntervalSinceNow:0];

    NSTimeInterval a = [datetimeIntervalSince1970];

   NSString *timeStr = [NSStringstringWithFormat:@"%f",a];

   NSString *timeV = [NSStringstringWithFormat:@"%d",[timeStrintValue]];

时间戳