Example #1
0
 /**
  * Calculates the time between this event and a timestamp
  * @param  Timestamp $timestamp
  * @return IntegerInterface
  */
 public function timeBetween(Timestamp $timestamp) : IntegerInterface
 {
     return new Integer($this->getTimestamp()->toInt() - $timestamp->toInt());
 }