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