getTimestampInterval() public method

Returns the Period duration as expressed in seconds
public getTimestampInterval ( ) : float
return float
Beispiel #1
0
 /**
  * Returns the difference between two Period objects expressed in seconds
  *
  * @param Period $period
  *
  * @return float
  */
 public function timestampIntervalDiff(Period $period)
 {
     return $this->getTimestampInterval() - $period->getTimestampInterval();
 }