public function getDifferenceInSeconds($hours = 0, $minutes = 0, $second = 0) { $tmpTime = new time($hours, $minutes, $seconds); $difference = $this->getSeconds - $tmpTime->getSeconds(); unset($tmpTime); return $difference; }