1 self.expireTime = [theExpiredTime intValue]+ [[NSDate date] timeIntervalSince1970];
2
- (BOOL)isAuthorizeExpired
{
if ([[NSDate date] timeIntervalSince1970] > expireTime)
{
//刪除操作
return YES;
}
return NO;
}
以秒為單位計算